Skip to content

feat: add VM personal-agent runtime adapter - #3130

Draft
lee3Q wants to merge 44 commits into
mainfrom
feat/personal-agent-vm-runtime-20261130
Draft

lee3Q wants to merge 44 commits into
mainfrom
feat/personal-agent-vm-runtime-20261130

Conversation

@lee3Q

@lee3Q lee3Q commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds a generalized VM-backed personal-agent runtime and host bridge, with a Grokbot profile grounded in documented public surfaces. Explicit /ouroboros and ooo auto requests are translated into durable Ouroboros host receipts, while VM command dispatch provides workspace-scoped artifacts, idempotency, timeouts, and disconnect recovery.

Review boundary

  • User problem: A VM-providing personal agent needs a deterministic, resumable bridge into Ouroboros without claiming ordinary chat or conflating Grokbot with the local Grok Build CLI.
  • Inputs and execution conditions: Explicit /ouroboros ... or ooo auto ... host messages; VM command/MCP transports implementing the adapter protocol; an approved host workspace; fake command/MCP transports for deterministic tests.
  • Promised contract: Ordinary host text is not claimed; explicit invocations produce structured receipts and correlation IDs; repeated (session_id, dispatch_id) requests do not replay execution; workspace, VM, and artifact paths resolve inside the approved workspace; disconnect recovery resumes an accepted remote execution by execution ID without replaying the command. JSON receipt stores also atomically claim a new correlation key across concurrent runtime instances.
  • Implementation boundary and owner: src/ouroboros/integrations/ owns the generic personal-agent host bridge, VM runtime, workspace mapper, receipt store, transport adapters, and Grokbot profile. It crosses only the host-to-Ouroboros and VM workspace boundaries declared above.
  • Non-goals: This PR does not implement private Grokbot APIs, claim a live paid Grokbot subscription, provide a real VM provider, or change ordinary mail/calendar/chat routing. Custom receipt stores predating put_if_absent retain a compatibility fallback and do not receive the JSON store's cross-process claim guarantee.
  • Evidence: Unit and integration tests cover explicit-only host routing, path traversal and symlink rejection, artifact collection, concurrent same-key idempotency, concurrent JSON-store claims across runtime instances, disconnect/restart resume, malformed error responses, and fake-host Grokbot profile round trips.

Test plan

  • python3 scripts/check-module-size.py --baseline-ref origin/main — passed before and after verification
  • uv run ruff format --check src/ tests/ — passed
  • uv run ruff check src/ tests/ — passed
  • uv run mypy src/ouroboros — passed (819 source files)
  • uv run pytest tests/unit/integrations/ tests/integration/host/ -q — 74 passed
  • uv run ruff format --check src/ouroboros/integrations tests/unit/integrations tests/integration/host — passed
  • uv run ruff check src/ouroboros/integrations tests/unit/integrations tests/integration/host — passed
  • Remote Draft PR checks at the prior commit — passed, including Python 3.12, Windows sandbox, Ruff, MyPy, Bridge TypeScript, module size, boundary, and envelope checks; post-push checks will rerun for this commit
  • uv run pytest — local Python 3.14 run reached 9,739 passed, 119 skipped, and 1 xfailed before interruption after three unrelated existing failures: two in tests/unit/boundary/test_base_regression.py and one in tests/unit/cli/test_run_successors.py

Verification categories

  • [Verified locally] The deterministic focused acceptance command, repository-wide Ruff checks, MyPy, module-size gate, and the touched integration/runtime tests pass. The prior remote CI run was green; the new commit will receive a fresh run after push.
  • [Simulated VM/Fake Host E2E] Deterministic fake command/MCP transports verify path containment, artifact receipts, concurrent JSON receipt claims, restart recovery, explicit host routing, malformed response handling, and Grokbot profile behavior.
  • [Unverified: live paid Grokbot account] No paid live Grokbot account or provider-side VM execution was available; no private API or live cloud verification is claimed.

R-run comparison

N/A — this PR does not touch src/ouroboros/auto/.

Related issues

No issue applies to this standalone adapter milestone; the no-issue label provides the documented hygiene exemption.

Round 2 empirical audit

  • Resolved lock lifecycle leak: a 5,000-dispatch stress probe previously retained 5,000 per-key locks and about 7.6 MiB of traced allocation. The shared keyed lock pool now releases idle entries; the post-fix probe ended with zero active lock entries.
  • Resolved malformed response state: escaping remote artifact paths previously raised after persisting running, and unknown remote statuses remained nonterminal without an error. Both now produce terminal failed receipts with durable error evidence.
  • New automated coverage: focused tests cover 512 unique dispatches, malformed remote artifact responses, unknown statuses, and host start-lock cleanup.

Round-2 verification is [Verified locally] with the deterministic focused acceptance command, repository-wide Ruff, MyPy, and module-size checks. VM execution remains [Simulated VM/Fake Host E2E]; a [Unverified: live paid Grokbot account] is still unavailable.

Round 4 architecture and reviewer walkthrough audit

Round 4 is [Verified locally] at commit 97544129.

The adversarial audit found and fixed three concrete runtime contract gaps.

  • Overlapping workspace roots: an absolute host path under a host root nested inside the VM root was interpreted as VM notation and mapped twice. Host-root containment now takes precedence for absolute host paths, while explicit VM paths continue through resolved containment checks. A regression test covers dispatch and artifact paths.
  • Invalid correlation keys: blank or NUL-containing explicit idempotency_key values were accepted. The request boundary now rejects them before receipt correlation, preventing accidental durable-key collisions.
  • Exit-status integrity: a provider response with status=completed and exit_code=7 was recorded as success. The runtime now stores a terminal failed receipt with explicit exit-code evidence.

New regression coverage brings the focused suite to 83 passed. The existing 512-dispatch lock stress test remains green. Root scratch STATUS.md was removed from the branch after the independent hygiene review.

Round 4 verification evidence

  • uv run ruff format --check src/ tests/ — 1,949 files already formatted
  • uv run ruff check src/ tests/ — passed
  • uv run mypy src/ouroboros — passed, 819 source files
  • python3 scripts/check-module-size.py --baseline-ref origin/main — passed, 818 modules
  • uv run pytest tests/unit/integrations/ tests/integration/host/ -q — 83 passed in 2.06s
  • uv run ruff check src/ouroboros/integrations tests/unit/integrations tests/integration/host — passed
  • git diff --check — passed

Verification boundary matrix

  • [Verified locally] Workspace containment and path normalization, idempotent receipt claims, cancellation and disconnect recovery, malformed MCP responses, bounded output, artifact metadata, host-only explicit invocation, receipt evidence preservation, focused pytest, Ruff, MyPy, and module-size gates.
  • [Simulated VM/Fake Host E2E] VM command and MCP transport round trips, cross-runtime JSON receipt claims, restart resume, host fanout submission, Grokbot profile behavior, and provider failure responses use deterministic fakes.
  • [Unverified: live paid Grokbot account] No paid Grokbot subscription, provider VM, private Bot API, or live cloud execution was available. The PR makes no live-provider verification claim.

The full Round 4 evidence is recorded in docs/verification/grok-bot-host-adapter.md.

Round 4 continuation: durable host state and sparse polling

This continuation is [Verified locally] at the current branch tip.

The adversarial audit reproduced three concrete contract gaps and added regression coverage:

  • The host adapter's duplicate-start cache was memory-only. JsonHostReceiptStore now atomically persists a deterministic explicit-request receipt key and refreshes it after start, wait, fanout submission, result, and cancel. A fresh adapter reloads the latest cursor and does not start a duplicate Auto session.
  • A sparse ouroboros_job_wait snapshot could omit pending_host_dispatches, causing an actionable dispatch to disappear; a stale lower cursor could also regress local progress. Omitted dispatch fields now preserve pending work and cursors are monotonic.
  • Python accepted True as a timeout and a single string as an artifact iterable. VM request boundaries now reject both ambiguous inputs before transport execution.

New automated tests:
test_json_receipt_store_prevents_a_duplicate_start_after_host_restart,
test_sparse_wait_snapshot_preserves_pending_dispatch_and_cursor,
test_vm_request_rejects_boolean_timeout_and_string_artifact_iterables, and
test_execute_command_rejects_a_single_artifact_string.

Continuation gate evidence:

  • [Verified locally] uv run pytest tests/unit/integrations/ tests/integration/host/ -q — 87 passed
  • [Verified locally] uv run ruff check src/ouroboros/integrations tests/unit/integrations tests/integration/host — passed
  • [Verified locally] uv run ruff format --check src/ tests/ — 1,949 files already formatted
  • [Verified locally] uv run ruff check src/ tests/ — passed
  • [Verified locally] uv run mypy src/ouroboros — passed, 819 source files
  • [Verified locally] python3 scripts/check-module-size.py --baseline-ref origin/main — 818 modules, cap 2,000
  • [Verified locally] git diff --check — passed

The deterministic fake command/MCP transports and JSON receipt restart path remain [Simulated VM/Fake Host E2E]. A paid live Grok Bot account, provider-side VM, private Bot API, and cloud execution remain [Unverified: live paid Grokbot account]. No root STATUS.md is present in the branch; tracked STATE.md remains the execution anchor.

Evolution round 28: architecture math and reviewer walkthrough audit

Round 28 is implemented at commit 64b26c39 and keeps the PR boundary stable. The adversarial pass reviewed the complete origin/main...HEAD diff, checked Draft PR #3130, reran focused and repository gates, and ran direct pre-fix probes. Three concrete gaps were reproduced:

  • A standard MCP envelope containing JSON only in content was rejected without structuredContent or meta, so a public text-only JSON response could not advance the host lifecycle.
  • A restored host receipt with status=completed and is_terminal=false stayed nonterminal and could poll a completed job again after restart.
  • A persisted VM receipt with status=mystery-state was accepted as resumable; the pre-fix fake transport resume was called once, authorizing an unrecognized durable state.

The host normalizer now parses a JSON object from text content when structured fields are absent. Restored host receipts derive terminal state from terminal statuses. VMExecutionReceipt enforces the finite persisted state set (running, disconnected, recovery_required, timed_out, completed, failed) and fails closed before workspace mapping or remote resume on unknown state.

The reviewer walkthrough records these checked relationships:

  • active_executions <= max_concurrent_executions and active_executions + queued_executions <= max_concurrent_executions + max_queue_size.
  • A receipt is claimed before VM execution, and only a stored execution ID can authorize resume.
  • Host cursors remain monotonic, omitted pending dispatch fields preserve the last actionable set, and terminal status cannot be reopened by a stale boolean.
  • Artifact path count and hashed bytes remain bounded, with directory-relative no-follow hashing covering parent-symlink swaps.

New regression tests:

  • test_wire_response_normalization_parses_json_text_content_without_structured_content
  • test_restored_terminal_status_overrides_a_stale_non_terminal_flag
  • test_persisted_unknown_receipt_status_fails_before_resume

Verification evidence:

  • [Verified locally] uv run pytest tests/unit/integrations/ tests/integration/host/ -q — 112 passed.
  • [Verified locally] touched-path Ruff format/check, full uv run ruff check src/ tests/, uv run mypy src/ouroboros, python3 scripts/check-module-size.py --baseline-ref origin/main, and git diff --check — all passed.
  • [Verified locally] 64-dispatch deterministic burst benchmark with a 3 ms fake service and concurrency ceiling 4 — max_active=4, p50=29.44 ms, p99=51.59 ms, wall=59.25 ms, final active/queued 0/0.
  • [Simulated VM/Fake Host E2E] Host and VM restart journeys, command/MCP transports, receipt claims, path checks, and provider failures use deterministic fakes.
  • [Unverified: live paid Grokbot account] No paid live Grok Bot account, provider VM, private Bot API, or cloud-side execution was available; no live verification claim is made.

Root scratch STATUS.md was removed in this round. The PR remains Draft and must not be merged by this task.

@lee3Q lee3Q added the no-issue PR intentionally has no associated issue; exempts it from the PR Hygiene issue-link gate label Nov 29, 2026
ouroboros-agent[bot]
ouroboros-agent Bot previously approved these changes Nov 29, 2026

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: APPROVE

Metadata

Field Value
PR #3130
HEAD checked 55ca946107d713c6465ef2322be4524e44b23013
Request ID req_1795981846_3
Review record b5e1bfd0-3009-4428-b932-767e1a863fb2

What Improved

  • Adds a platform-neutral personal-agent host adapter with explicit invocation routing, structured receipts, host dispatch handling, and resume support.
  • Adds VM runtime transports, workspace path validation, artifact metadata, durable receipts, idempotency, and disconnect recovery.
  • Adds Grok Bot public-surface documentation and focused fake-host/VM tests.

Issue Requirements

Requirement Status
No linked issue requirement captured N/A
Declared explicit-only invocation, structured receipts, idempotency, workspace containment, and disconnect recovery Satisfied by current implementation and focused tests
No private Grok Bot API or live-account guarantee Satisfied

Prior Findings Status

No prior ouroboros-agent review rounds were supplied; no earlier concerns to maintain, modify, or withdraw.

Blockers

No in-scope blocking findings remained after policy filtering.

Follow-up Findings

# File:Line Priority Confidence Suggestion
1 STATUS.md:1 Low High Remove or relocate the draft workflow/status metadata from the product tree; it is unrelated to the declared integrations boundary and contains transient PR execution notes.

Non-blocking Suggestions

| 1 | STATUS.md:1 | Scope hygiene | The added status file looks like transient development orchestration metadata rather than maintained product documentation. |

Test Coverage Notes

  • Reviewed the focused integration and unit suites: 44 passed.
  • Ruff checks passed for the changed integration and test paths.
  • MyPy passed for src/ouroboros/integrations.
  • The PR body reports the full-suite run was still in progress; no full-suite result was available in the supplied evidence.

Design Notes

The design keeps the new integration layer at the boundary and reuses existing Ouroboros MCP job and host-dispatch contracts. VM execution state is represented by immutable receipts with an explicit correlation key, while host adapters remain transport-neutral. No blocking architectural change is required.

Design / Roadmap Gate

The PR declares supported explicit host inputs, approved workspace execution, fake transports, and resumable VM operations. Current code validates invocation prefixes, maps host/VM paths, persists receipt state, prevents same-key duplicate execution, and resumes by execution ID after disconnects. The adapter rejects non-host runtime negotiation and preserves structured job evidence. The only noted issue is transient status metadata outside the implementation boundary.

Directional Notes

Review focus was guided by the declared host/VM boundary, replay-safe durable receipts, workspace containment, and preservation of structured transport evidence. Advisory memory informed inspection only; no blocker relies on memory alone.

Convergence Gate

  • Decision: CONTINUE

  • Review round: 1

  • Subsystem budget: 8 — README.md, STATUS.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 0 (0 repeated)

  • Root-cause hypothesis: No blocking root cause

  • Minimal reproduction: N/A

  • Subsystem budget: integrations, MCP host job lifecycle, VM transport boundary

  • Scope expansion: none

  • Blocker classification: none

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: integrations boundary adapters and existing MCP/job owners

Test Coverage

  • Reviewed the focused integration and unit suites: 44 passed.
  • Ruff checks passed for the changed integration and test paths.
  • MyPy passed for src/ouroboros/integrations.
  • The PR body reports the full-suite run was still in progress; no full-suite result was available in the supplied evidence.

Merge Recommendation

Approve. The declared adapter contract is implemented and the focused tests, Ruff checks, and MyPy verification pass. Remove the transient STATUS.md metadata as a follow-up before or after merge.

Review-Metadata:
verdict: APPROVE
head_sha: 55ca946
request_id: req_1795981846_3
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

ouroboros-agent[bot]
ouroboros-agent Bot previously approved these changes Nov 29, 2026

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: APPROVE

Metadata

Field Value
PR #3130
HEAD checked 060966dc3d34eb09ceaf1d3ce938c2f9b2ceea3c
Request ID req_1795983990_8
Review record 24cf40dd-de8f-4c20-ac1f-46a92676ce08

What Improved

  • Adds explicit personal-agent host routing, VM workspace containment, durable idempotent execution receipts, disconnect recovery, artifact collection, and Grok Bot public-surface documentation.

Issue Requirements

Requirement Status
No linked issue requirement captured; PR claims the documented no-issue exemption Satisfied as declared
Explicit-only host invocation and ordinary-message pass-through Satisfied; covered by tests
Structured receipts, workspace containment, idempotency, and disconnect recovery Satisfied; covered by focused tests
Fake-host verification and public-surface-only Grok Bot profile Satisfied; covered by focused tests

Prior Findings Status

The prior approval remains valid. Its STATUS.md hygiene follow-up is still present; no prior blocking concern is reproduced in the current snapshot.

Blockers

No in-scope blocking findings remained after policy filtering.

Follow-up Findings

# File:Line Priority Confidence Suggestion
1 STATUS.md:1 Low High Remove the transient AI execution status artifact before or after merge; it is outside the declared integration boundary.

Non-blocking Suggestions

| 1 | STATUS.md:1 | Repository hygiene | This generated task-status file does not belong in the product snapshot. |

Test Coverage Notes

  • Focused integration and unit tests reviewed and executed: 44 passed.
  • PR reports Ruff, MyPy, module-size, and remote Python 3.12 checks passing. The full local suite was stopped after unrelated Python 3.14 boundary-test failures.

Design Notes

The adapter keeps host routing, VM execution, path mapping, and receipt persistence in the declared integrations boundary while reusing existing Ouroboros host-dispatch tools. Durable receipts preserve correlation keys and remote execution IDs, so retries resume accepted work instead of replaying commands. No new ownership boundary is required.

Design / Roadmap Gate

The PR contract is explicit about inputs, host runtime conditions, approved workspaces, fake transports, non-goals, and verification. Current code rejects ordinary host text, validates host runtime negotiation, maps and checks workspace paths including symlinks, persists execution identity, and resumes through transport execution IDs. Cross-process receipt locking and live Grok Bot verification are explicitly excluded.

Directional Notes

Review focus followed the declared host/VM boundary, replay-safe durable state, workspace containment, and explicit invocation rule. Maintainer memory was used only to direct inspection; no blocker depends on memory alone.

Convergence Gate

  • Decision: CONTINUE

  • Review round: 2

  • Subsystem budget: 8 — README.md, STATUS.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 0 (0 repeated)

  • Root-cause hypothesis: No blocking root cause

  • Minimal reproduction: N/A

  • Subsystem budget: integrations, host MCP adapter, VM runtime, receipt persistence, documentation, tests

  • Scope expansion: none

  • Blocker classification: none

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: ouroboros.integrations host/VM adapter layer

Test Coverage

  • Focused integration and unit tests reviewed and executed: 44 passed.
  • PR reports Ruff, MyPy, module-size, and remote Python 3.12 checks passing. The full local suite was stopped after unrelated Python 3.14 boundary-test failures.

Merge Recommendation

Approve. The declared adapter contract is implemented, focused tests pass, and no in-boundary blocking defect is demonstrated. Remove the transient STATUS.md artifact as a hygiene follow-up.

Review-Metadata:
verdict: APPROVE
head_sha: 060966d
request_id: req_1795983990_8
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

ouroboros-agent[bot]
ouroboros-agent Bot previously approved these changes Nov 29, 2026

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: APPROVE

Metadata

Field Value
PR #3130
HEAD checked 0b8542ec91d9325b8e2349f5a8b9c40054284c17
Request ID req_1795986265_10
Review record e1fcf050-9630-4720-948a-2127db40a5cf

What Improved

  • Adds an explicit personal-agent host adapter with strict /ouroboros / ooo auto routing.
  • Adds VM workspace containment, artifact metadata, idempotent receipts, timeout handling, and disconnect recovery.
  • Adds Grok Bot public-surface documentation, profiles, and focused unit/integration coverage.

Issue Requirements

Requirement Status
No linked issue requirement captured; PR declares the documented no-issue exemption Satisfied
Explicit-only host invocation Satisfied
Structured receipts and correlation IDs Satisfied
Workspace, VM, and artifact path containment Satisfied by current path mapping and tests
Resume accepted remote execution without replay Satisfied by persisted execution IDs and resume path
Focused verification evidence Declared by PR; not independently runnable here because pytest is unavailable

Prior Findings Status

Prior rounds approved the declared adapter contract and identified only the transient STATUS.md artifact as follow-up. Current source still supports the stated explicit routing, workspace containment, durable receipt, and resume behavior. No prior blocker remains.

Blockers

No in-scope blocking findings remained after policy filtering.

Follow-up Findings

# File:Line Priority Confidence Suggestion
1 STATUS.md:1 P3 High Remove the transient implementation-status artifact before merge. It records internal workflow metadata rather than product or contributor documentation.

Non-blocking Suggestions

| 1 | STATUS.md:1 | Repository hygiene | Remove generated/task-tracking status content from the product snapshot. |

Test Coverage Notes

  • Reviewed the focused VM runtime and host adapter tests, including path traversal, symlink rejection, artifact collection, idempotency, concurrent calls, disconnect/restart recovery, timeout recovery, explicit routing, dispatch submission, and response normalization.
  • python3 -m compileall -q src/ouroboros/integrations tests/unit/integrations tests/integration/host passed.
  • Pytest could not be run in this review environment because pytest is not installed. The PR reports 44 focused tests passing and remote Python 3.12 CI green; those claims were not independently executed here.

Design Notes

The adapter remains at the integrations boundary and delegates lifecycle work to existing MCP/job contracts. VM execution owns path mapping, receipt persistence, timeout classification, and transport resume/cancel behavior; the host adapter owns explicit parsing, response normalization, dispatch correlation, and evidence projection. No new core subsystem or ownership boundary is required. STATUS.md is the only scope/hygiene concern.

Design / Roadmap Gate

The PR declares supported explicit host inputs, approved workspace execution, fake transports, and resumable VM operations. Current code rejects ordinary host text, validates runtime negotiation, maps host and VM paths through the approved workspace, persists execution identity, avoids command replay, and preserves structured job evidence. Cross-process receipt locking and live Grok Bot verification are explicitly excluded. The transient status file is outside the product boundary but does not affect runtime behavior.

Directional Notes

Review focus followed the declared host/VM boundary, replay-safe durable receipts, workspace containment, and preservation of structured transport evidence. Maintainer memory was used only as inspection guidance; no blocker relies on memory alone.

Convergence Gate

  • Decision: CONTINUE

  • Review round: 3

  • Subsystem budget: 8 — README.md, STATUS.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 0 (0 repeated)

  • Root-cause hypothesis: No blocking root cause

  • Minimal reproduction: N/A

  • Subsystem budget: src/ouroboros/integrations, existing MCP host/job lifecycle, VM transport boundary

  • Scope expansion: none

  • Blocker classification: none

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: src/ouroboros/integrations for adapter effects; existing MCP/job subsystems for lifecycle state

Test Coverage

  • Reviewed the focused VM runtime and host adapter tests, including path traversal, symlink rejection, artifact collection, idempotency, concurrent calls, disconnect/restart recovery, timeout recovery, explicit routing, dispatch submission, and response normalization.
  • python3 -m compileall -q src/ouroboros/integrations tests/unit/integrations tests/integration/host passed.
  • Pytest could not be run in this review environment because pytest is not installed. The PR reports 44 focused tests passing and remote Python 3.12 CI green; those claims were not independently executed here.

Merge Recommendation

Approve. No current-head contract violation or material runtime/security defect is demonstrated. Remove the transient STATUS.md artifact as a follow-up.

Review-Metadata:
verdict: APPROVE
head_sha: 0b8542e
request_id: req_1795986265_10
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

ouroboros-agent[bot]
ouroboros-agent Bot previously approved these changes Nov 29, 2026

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: APPROVE

Metadata

Field Value
PR #3130
HEAD checked c4680914f5e1e57c74fcf990bd20fc22f5ecce7b
Request ID supersede-requeue-pr:3130-c468091
Review record bb6e1bb0-2440-410f-bf61-b0a22bcb5462

What Improved

  • Adds an explicit personal-agent host adapter with durable VM receipts, workspace containment, idempotent dispatch, disconnect recovery, structured evidence, and Grok Bot public-surface documentation.

Issue Requirements

Requirement Status
No linked issue requirement captured; PR declares the documented no-issue exemption Satisfied
Explicit /ouroboros and ooo auto invocation only Satisfied
Durable receipts, idempotency, workspace containment, artifact handling, and disconnect recovery Satisfied by changed code and focused tests
Grok Bot live provider integration Explicitly a non-goal and not claimed

Prior Findings Status

Prior concerns were maintained as withdrawn/non-blocking only: current HEAD still satisfies the explicit invocation, workspace containment, durable receipt, idempotency, and resume contracts. The transient STATUS.md hygiene concern remains a follow-up.

Blockers

No in-scope blocking findings remained after policy filtering.

Follow-up Findings

# File:Line Priority Confidence Suggestion
1 STATUS.md:1 Low High Remove the transient workflow-status artifact from the product PR or move it to the maintainer-only workflow surface.

Non-blocking Suggestions

| None. |

Test Coverage Notes

  • Reviewed the focused integration and unit suites: uv run pytest tests/unit/integrations tests/integration/host -q — 70 passed.
  • The PR reports Ruff, MyPy, module-size, and prior CI checks passing; the full local suite was interrupted after unrelated existing failures.

Design Notes

The adapter remains within src/ouroboros/integrations/, reusing the existing MCP job lifecycle and host runtime. Receipt persistence, correlation checks, path mapping, and resume-by-execution-ID are owned by the integration layer. No new subsystem or ownership boundary is required.

Design / Roadmap Gate

The PR boundary is explicit about supported host inputs, approved workspaces, fake transports, and resumable VM operations. Current code rejects ordinary host text, validates host runtime negotiation, maps host and VM paths through the approved workspace, persists execution identity, prevents command replay, and preserves structured job evidence. Live Grok Bot verification is explicitly excluded. The added STATUS.md is outside the runtime boundary and is only a hygiene follow-up.

Directional Notes

Review focus followed the declared explicit-command boundary, replay-safe durable state, workspace/path containment, and preservation of structured transport evidence. Maintainer-memory cues were used only to direct inspection; no blocker relies on memory alone.

Convergence Gate

  • Decision: CONTINUE

  • Review round: 4

  • Subsystem budget: 8 — README.md, STATUS.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 0 (0 repeated)

  • Root-cause hypothesis: No blocking root cause

  • Minimal reproduction: N/A

  • Subsystem budget: ouroboros.integrations.personal_agent_host, ouroboros.integrations.vm_agent_runtime, integration documentation

  • Scope expansion: none

  • Blocker classification: N/A

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: personal-agent host and VM integration layer

Test Coverage

  • Reviewed the focused integration and unit suites: uv run pytest tests/unit/integrations tests/integration/host -q — 70 passed.
  • The PR reports Ruff, MyPy, module-size, and prior CI checks passing; the full local suite was interrupted after unrelated existing failures.

Merge Recommendation

Approve. No current-head contract violation or material runtime/security defect is demonstrated. The focused adapter and VM tests pass; only removal of the transient STATUS.md artifact is recommended as follow-up.

Review-Metadata:
verdict: APPROVE
head_sha: c468091
request_id: supersede-requeue-pr:3130-c468091
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

ouroboros-agent[bot]
ouroboros-agent Bot previously approved these changes Nov 29, 2026

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: APPROVE

Metadata

Field Value
PR #3130
HEAD checked a3cd70f3dbec2c4d44e81e0d67de91148c2f2117
Request ID req_1795990720_19
Review record 9fc782dd-a9d5-4aff-bfc9-0592f478d51b

What Improved

  • Adds a platform-neutral personal-agent host adapter with explicit invocation parsing, capability negotiation, structured receipts, host dispatch submission, and Grok Bot profile support.
  • Adds VM execution with workspace containment, artifact hashing, idempotency, atomic JSON receipt claims, bounded output, timeout handling, disconnect recovery, and resume-by-execution-ID.
  • Adds focused unit and integration coverage for routing, malformed responses, concurrency, path safety, timeout cleanup, and restart recovery.

Issue Requirements

Requirement Status
No linked issue requirement captured; PR declares the documented no-issue exemption Satisfied

Prior Findings Status

Prior review rounds were dismissed. Their focus on explicit invocation boundaries, workspace containment, durable receipts, and disconnect recovery remains satisfied by the current source. The transient STATUS.md hygiene concern remains. No prior blocker requires reopening.

Blockers

No in-scope blocking findings remained after policy filtering.

Follow-up Findings

# File:Line Priority Confidence Suggestion
1 src/ouroboros/integrations/personal_agent_host.py:621 P2 High _start_receipts keys only by session, prefix, goal, and cwd, so repeated identical explicit requests on the same adapter return the first receipt without issuing a new ouroboros_start_auto call. If repeated invocations are intended to start fresh sessions, scope this cache to in-flight duplicate suppression or include a caller request/correlation ID.
2 STATUS.md:1 P2 High Remove the transient workflow status artifact from the product tree.

Non-blocking Suggestions

| 1 | docs/runtime-guides/grok-bot.md:1 | Documentation | Live Grok Bot execution remains explicitly unverified; the documentation correctly labels this limitation. |

Test Coverage Notes

  • Reviewed the added unit and integration tests.
  • Ran uv run pytest -q tests/unit/integrations/ tests/integration/host/: 74 passed.
  • PR-reported Ruff, MyPy, module-size, and prior CI checks were considered; the repository-wide pytest run was reported as interrupted after unrelated existing failures.

Design Notes

The design keeps host adaptation and VM execution in src/ouroboros/integrations/, with MCP handlers remaining thin. Durable receipt state, correlation checks, workspace mapping, replay prevention, and recovery are centralized in the VM runtime. No new subsystem or ownership boundary is required.

Design / Roadmap Gate

The declared inputs and execution conditions are explicit host commands, approved workspaces, VM/MCP transports, and fake transports. Receipts persist correlation, execution IDs, status, artifacts, and recovery metadata. Resume reconstructs the persisted request and calls transport resume without replaying the command. Path mapping applies one containment rule to host, VM, dispatch, and artifact paths. Cross-process JSON claims use atomic creation. The only observed behavior concern is the adapter’s long-lived identical-request cache, recorded as follow-up.

Directional Notes

Review focus followed the declared explicit host boundary, workspace confinement, durable replay-safe state, and disconnect recovery. Runtime evidence was used directly; maintainer memory only guided inspection. The PR correctly distinguishes Grok Bot from the local Grok Build CLI and does not claim live provider verification.

Convergence Gate

  • Decision: CONTINUE

  • Review round: 5

  • Subsystem budget: 8 — README.md, STATUS.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 0 (0 repeated)

  • Root-cause hypothesis: No blocking root cause

  • Minimal reproduction: N/A

  • Subsystem budget: integrations host adapter, VM runtime, receipt stores, workspace mapper

  • Scope expansion: none

  • Blocker classification: none

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: ouroboros.integrations host adapter and VM runtime

Test Coverage

  • Reviewed the added unit and integration tests.
  • Ran uv run pytest -q tests/unit/integrations/ tests/integration/host/: 74 passed.
  • PR-reported Ruff, MyPy, module-size, and prior CI checks were considered; the repository-wide pytest run was reported as interrupted after unrelated existing failures.

Merge Recommendation

Approve. Focused integration and unit tests pass, and no in-boundary contract violation or material runtime/security defect is demonstrated. Remove STATUS.md and consider tightening repeated identical host-request semantics as follow-up.

Review-Metadata:
verdict: APPROVE
head_sha: a3cd70f
request_id: req_1795990720_19
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

ouroboros-agent[bot]
ouroboros-agent Bot previously approved these changes Nov 29, 2026

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: APPROVE

Metadata

Field Value
PR #3130
HEAD checked 975441297f908c2e2dbbc29432e00038d9f6819b
Request ID supersede-requeue-pr:3130-9754412
Review record 6c53e87d-a69d-4578-9e3b-e6d074bf8467

What Improved

  • Adds a reusable VM personal-agent runtime with workspace containment, durable receipts, idempotent dispatch, timeout/disconnect recovery, artifact metadata, and command/MCP transports.
  • Adds an explicit-only host adapter and Grok Bot profile without claiming private or live provider APIs.
  • Adds focused unit and integration coverage; the declared focused suite passes with 83 tests.

Issue Requirements

Requirement Status
No linked issue requirement captured; PR declares the documented no-issue exemption Satisfied

Prior Findings Status

Prior rounds’ runtime blockers remain withdrawn by current-head evidence: path-root precedence, invalid correlation keys, malformed responses, unknown statuses, and nonzero exit handling are implemented and covered. The previously noted transient status artifact was renamed rather than removed; the current STATE.md remains a non-blocking hygiene issue.

Blockers

No in-scope blocking findings remained after policy filtering.

Follow-up Findings

# File:Line Priority Confidence Suggestion
1 src/ouroboros/integrations/personal_agent_host.py:672 P2 0.93 Preserve locally announced pending dispatches when a later wait() response omits them; otherwise polling again before worker completion clears the receipt’s dispatch and makes submit_dispatch() reject it.
2 src/ouroboros/integrations/personal_agent_host.py:613 P2 0.85 Reconsider the unbounded identical-request cache: the same host session, goal, prefix, and cwd always returns the original receipt, preventing an intentional repeat after completion. Define an explicit replay key or documented cache lifetime.

Non-blocking Suggestions

| 1 | STATE.md:1 | Repository hygiene | The branch still includes transient round-by-round verification state. Remove this scratch artifact before merge. |

Test Coverage Notes

  • Reviewed the focused VM and host adapter unit/integration suites; uv run pytest tests/unit/integrations/ tests/integration/host/ -q passes (83 tests).
  • The PR reports Ruff, MyPy, module-size, and touched-path checks passing. Full pytest was interrupted after unrelated existing failures, so no independent full-suite result is available.

Design Notes

The adapter keeps provider-specific behavior at the integration edge, reuses existing MCP job/fanout contracts, and stores VM execution evidence in a replay-safe receipt state machine. Workspace mapping, transport adaptation, and persistence have clear ownership. No new subsystem or ownership boundary is required by the reviewed follow-ups.

Design / Roadmap Gate

The declared inputs, approved workspace precondition, host/VM transport conditions, explicit invocation rule, and fake-transport verification are addressed. Resume uses persisted execution IDs and does not replay commands. JSON receipt claims are atomic across runtime instances. Live Grok Bot execution remains explicitly out of scope. The remaining concerns affect host receipt ergonomics and repository hygiene, not the promised runtime contract.

Directional Notes

Review focus followed the declared explicit host boundary, workspace confinement, durable replay-safe receipts, and disconnect recovery. Memory cues about durable state and evidence provenance guided inspection only; current source and focused tests support approval.

Convergence Gate

  • Decision: CONTINUE

  • Review round: 6

  • Subsystem budget: 8 — README.md, STATE.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 0 (0 repeated)

  • Root-cause hypothesis: No blocking root cause

  • Minimal reproduction: N/A

  • Subsystem budget: integrations, host adapter, VM runtime, receipt persistence

  • Scope expansion: none

  • Blocker classification: none

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: ouroboros.integrations host adapter and VM runtime

Test Coverage

  • Reviewed the focused VM and host adapter unit/integration suites; uv run pytest tests/unit/integrations/ tests/integration/host/ -q passes (83 tests).
  • The PR reports Ruff, MyPy, module-size, and touched-path checks passing. Full pytest was interrupted after unrelated existing failures, so no independent full-suite result is available.

Merge Recommendation

Approve. No current-head contract violation or immediate user-data/security risk is demonstrated. Focused integration tests pass, and the remaining items are owned follow-ups plus removal of transient STATE.md.

Review-Metadata:
verdict: APPROVE
head_sha: 9754412
request_id: supersede-requeue-pr:3130-9754412
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

ouroboros-agent[bot]
ouroboros-agent Bot previously approved these changes Nov 29, 2026

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: APPROVE

Metadata

Field Value
PR #3130
HEAD checked dc6fb1e9a1aa6d9922a199a782eaaefd1719381f
Request ID req_1795995042_24
Review record cd75ed2e-a29c-4c60-bd6c-f10b963b3eca

What Improved

  • Adds a generic VM-backed personal-agent runtime with workspace containment, durable receipts, idempotency, disconnect recovery, artifact metadata, and MCP/command transports.
  • Adds explicit-only host routing, Grok Bot public-surface profiling, structured receipts, dispatch validation, and documentation.

Issue Requirements

Requirement Status
No linked issue requirement captured; PR declares the documented no-issue exemption N/A

Prior Findings Status

Prior rounds consistently approved the declared boundary. Their concerns about transient state artifacts and repeated identical host-request caching remain applicable as non-blocking follow-ups; current-head evidence shows no blocking contract violation.

Blockers

No in-scope blocking findings remained after policy filtering.

Follow-up Findings

# File:Line Priority Confidence Suggestion
1 src/ouroboros/integrations/personal_agent_host.py:613 Medium High _start_receipts permanently caches by host session, prefix, goal/resume ID, and cwd. A later explicit invocation with the same values returns the old receipt without calling ouroboros_start_auto; define or document this deduplication semantics, or key it by an explicit request identity.

Non-blocking Suggestions

| 1 | STATE.md:1 | Repository hygiene | This scratch verification-state file contains worktree/branch and process notes and should be removed before merge. |

Test Coverage Notes

  • Reviewed the focused VM and host unit/integration suites; 75 tests passed locally.
  • The PR body reports repository-wide Ruff, MyPy, module-size, and prior CI evidence; the full pytest run was interrupted with unrelated existing failures.

Design Notes

The implementation keeps host adaptation, VM execution, workspace mapping, receipt persistence, and transport wrappers in the declared integrations boundary. Durable receipt claims, execution IDs, and path validation are centralized in VMPersonalAgentRuntime; host handlers remain adapters over existing MCP job tools. No new subsystem or ownership boundary is required.

Design / Roadmap Gate

The contract declares explicit host messages, approved workspaces, VM/MCP transports, and fake transports. Current code rejects ordinary messages, validates runtime negotiation and paths, stores correlation and execution identity, avoids command replay, preserves structured evidence, and fails closed on malformed responses. Live Grok Bot execution remains an explicit non-goal. The remaining cache and scratch-file issues do not create an in-boundary runtime, data-loss, or security blocker.

Directional Notes

Review focus followed the declared explicit-invocation boundary, workspace confinement, atomic receipt claims, and replay-safe disconnect recovery. Memory cues were used only to direct inspection; current source and focused tests support approval.

Convergence Gate

  • Decision: CONTINUE

  • Review round: 7

  • Subsystem budget: 8 — README.md, STATE.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 0 (0 repeated)

  • Root-cause hypothesis: No blocking root cause

  • Minimal reproduction: N/A

  • Subsystem budget: integrations host adapter, VM runtime, workspace mapper, receipt stores, transport adapters

  • Scope expansion: none

  • Blocker classification: none

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: integrations runtime/host adapter

Test Coverage

  • Reviewed the focused VM and host unit/integration suites; 75 tests passed locally.
  • The PR body reports repository-wide Ruff, MyPy, module-size, and prior CI evidence; the full pytest run was interrupted with unrelated existing failures.

Merge Recommendation

Approve. Focused VM and host tests pass, and no current-head violation of the declared contract or immediate user-data/security risk is demonstrated. Remove STATE.md and decide the intended repeated-identical-host-request semantics as follow-ups.

Review-Metadata:
verdict: APPROVE
head_sha: dc6fb1e
request_id: req_1795995042_24
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

ouroboros-agent[bot]
ouroboros-agent Bot previously approved these changes Nov 29, 2026

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: APPROVE

Metadata

Field Value
PR #3130
HEAD checked d69e74231f63779b56d8cd6d0d17f4fe74a7fb4e
Request ID req_1795996209_26
Review record ab1fb71c-ab01-4e70-bc35-123d786307de

What Improved

  • Adds explicit-command host routing, workspace-confined VM execution, durable receipts, and recovery by remote execution ID. The guides distinguish Grok Bot hosting from the local Grok Build CLI.

Issue Requirements

Requirement Status
No linked issue requirement captured N/A
Claim only explicit /ouroboros or ooo auto messages Satisfied
Return structured host receipts and correlation data Satisfied under tested fake-host conditions
Prevent same-key VM command replay, including concurrent JSON-store claims Satisfied under tested conditions
Confine workspace and artifact paths Satisfied for the tested paths
Resume accepted VM execution by execution ID Satisfied under tested disconnect and restart conditions
Live Grok Bot or provider VM integration Explicit non-goal; unverified

Prior Findings Status

Prior rounds approved the declared adapter boundary while treating transient state files and repeated identical host requests as follow-ups. Current source supports that classification; no prior blocker is maintained.

Blockers

No in-scope blocking findings remained after policy filtering.

Follow-up Findings

# File:Line Priority Confidence Suggestion
1 STATE.md:1 Low High The contributor should remove this local execution-state file from the PR. It records a machine-specific worktree and review instructions, not product behavior.
2 src/ouroboros/integrations/personal_agent_host.py:527 Low High The integrations owner should define whether two separate host turns with identical text and session ID are new requests. The content-derived start key currently returns the first turn’s receipt indefinitely.

Non-blocking Suggestions

None.

Test Coverage Notes

  • Ran uv run pytest tests/unit/integrations/ tests/integration/host/ -q: 87 passed. Reviewed the fake-host, JSON receipt, path containment, concurrent VM claim, and restart tests. The PR reports Ruff and MyPy passing; live Grok Bot execution and a completed full-suite run remain unverified.

Design Notes

The generic host adapter and VM runtime remain within the declared integrations boundary. No blocking root-cause class or new subsystem is established.

Design / Roadmap Gate

The PR declares explicit host inputs, an approved workspace, adapter-protocol transports, and fake-transport verification. Current receipts retain execution identity and avoid command replay on recovery. The two follow-ups do not demonstrate a violation of the promised VM execution contract or an immediate data or security risk.

Directional Notes

Durable recovery and external harness artifacts guided inspection. The changed STATE.md supports a repository-hygiene follow-up; advisory memory was not used as proof of a runtime blocker.

Convergence Gate

  • Decision: CONTINUE

  • Review round: 8

  • Subsystem budget: 8 — README.md, STATE.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 0 (0 repeated)

  • Root-cause hypothesis: No blocking root cause

  • Minimal reproduction: N/A

  • Subsystem budget: integrations host adapter, VM runtime, receipt stores

  • Scope expansion: none

  • Blocker classification: none

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: integrations receipt stores and VM runtime

Test Coverage

  • Ran uv run pytest tests/unit/integrations/ tests/integration/host/ -q: 87 passed. Reviewed the fake-host, JSON receipt, path containment, concurrent VM claim, and restart tests. The PR reports Ruff and MyPy passing; live Grok Bot execution and a completed full-suite run remain unverified.

Merge Recommendation

Approve on the current snapshot: the focused suite passes and no in-boundary blocker is demonstrated. Remove STATE.md as a contributor-owned hygiene follow-up.

Review-Metadata:
verdict: APPROVE
head_sha: d69e742
request_id: req_1795996209_26
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

ouroboros-agent[bot]
ouroboros-agent Bot previously approved these changes Nov 30, 2026

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: APPROVE

Metadata

Field Value
PR #3130
HEAD checked 4fbd057e5c5ab856a3b9d0cd28ed672fe6f67efa
Request ID req_1796064118_93
Review record 4cd02d11-5152-4561-b91f-dd6919fa2458

What Improved

  • Adds a platform-neutral personal-agent host adapter with explicit invocation routing, workspace and VM path containment, durable receipt storage, idempotency claims, disconnect recovery, structured transport normalization, and a Grok Bot profile.

Issue Requirements

Requirement Status
No linked issue requirement captured; PR declares the standalone milestone and relies on the documented no-issue exemption Satisfied
Explicit-only host invocation with structured receipts and correlation IDs Implemented
Workspace, VM, and artifact paths remain inside the approved workspace Implemented and tested
Duplicate (session_id, dispatch_id) execution is prevented Implemented and tested
Accepted remote execution resumes by execution ID without replay Implemented and tested
JSON receipt claims are atomic across concurrent runtime instances Implemented and tested
Verification evidence and non-goals are documented Satisfied

Prior Findings Status

The durable pre-start reservation concern from prior rounds remains present in the current snapshot. Other earlier concerns described in the review history (path handling, sparse polling, malformed responses, stale terminal state, and VM receipt validation) appear addressed by current code and tests.

Blockers

No in-scope blocking findings remained after policy filtering.

Follow-up Findings

# File:Line Priority Confidence Suggestion
None.

Non-blocking Suggestions

None. |

Test Coverage Notes

  • Focused host unit and integration tests pass: 41 passed.
  • The PR reports broader focused coverage and static checks passing.
  • A direct failure probe demonstrates the stranded JSON reservation path; no regression test covers failed start_auto after reservation.

Design Notes

Root-cause class: durable start reservations have no failure reconciliation. The existing integrations host adapter and receipt-store owner should make the reservation transition to a terminal/recoverable record whenever start or validation fails, with tests covering transport failure, malformed response, and restart retry. No new subsystem is required.

Design / Roadmap Gate

The PR boundary is sufficiently specified: explicit host inputs, approved workspace, VM/MCP transports, durable receipts, idempotency, and disconnect recovery. The failure occurs within those promised execution conditions and leaves a durable request permanently unresolvable after a start transport error. The correction stays within src/ouroboros/integrations/ and does not expand ownership. Live provider APIs and ordinary chat routing remain non-goals.

Directional Notes

Review focus followed the declared explicit host boundary, durable receipt and replay behavior, workspace containment, and execution-ID recovery. Maintainer memory about durable asynchronous state and protocol boundaries guided inspection only; the blocker is independently reproduced from current source. External Grok Bot execution remains explicitly out of scope.

Convergence Gate

  • Decision: CONTINUE

  • Review round: 23

  • Subsystem budget: 7 — README.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 0 (0 repeated)

  • Root-cause hypothesis: A pre-start durable reservation can outlive every failed start attempt without becoming terminal or retryable.

  • Minimal reproduction: Use JsonHostReceiptStore, make ouroboros_start_auto raise once, then call the same explicit request through a new adapter; the second call must currently fail after the reservation timeout without invoking the tool.

  • Subsystem budget: src/ouroboros/integrations/personal_agent_host.py, host receipt stores, host integration tests

  • Scope expansion: none

  • Blocker classification: RESIDUAL_ROOT_CAUSE

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: personal-agent host adapter and its receipt store

Test Coverage

  • Focused host unit and integration tests pass: 41 passed.
  • The PR reports broader focused coverage and static checks passing.
  • A direct failure probe demonstrates the stranded JSON reservation path; no regression test covers failed start_auto after reservation.

Merge Recommendation

Request changes. The focused suite passes, but a promised explicit request can become permanently stranded after start_auto fails following durable reservation. Reconcile that reservation into a terminal or recoverable state and add a regression test before merge.

Policy Notes

  • Omitted 1 finding(s) that referenced files outside the current PR changed-files scope.

Review-Metadata:
verdict: APPROVE
head_sha: 4fbd057
request_id: req_1796064118_93
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: REQUEST_CHANGES

Metadata

Field Value
PR #3130
HEAD checked 10d1ca95e0b73ba0bd2e8b4cd2987b21fba38e2e
Request ID req_1796067281_96
Review record 95c906fc-283c-410b-b92e-d1ffb3d7d27a

What Improved

  • Adds VM-backed personal-agent runtime and host bridge with workspace containment, durable receipts, idempotency, disconnect recovery, bounded resources, and Grokbot profile support.

Issue Requirements

Requirement Status
No linked issue requirement captured; PR declares the no-issue exemption Satisfied
Explicit /ouroboros ... and ooo auto ... requests produce durable receipts and correlation IDs Not satisfied on malformed successful start responses because the reservation is left stuck
Duplicate (session_id, dispatch_id) requests do not replay execution Implemented and tested
Workspace, VM, and artifact paths remain inside the approved workspace Implemented and tested
Disconnect recovery resumes by execution ID without replay Implemented and tested
JSON receipt claims are atomic across runtime instances Implemented and tested

Prior Findings Status

Prior rounds approved the declared boundary with no blocking findings. The current issue is an independent defect in the reservation failure path and was not present in those classifications.

Blockers

# File:Line Severity Finding
1 src/ouroboros/integrations/personal_agent_host.py:928 BLOCKING After a JSON or memory start reservation is created, missing auto_session_id/job_id or another receipt-construction validation error escapes without calling abort_start. The reservation remains durable, so a retry of the same explicit request waits for the reservation timeout and refuses to create a job, violating the promised resumable/idempotent host lifecycle. All post-reservation response validation must release the reservation unless finalization succeeds.

Follow-up Findings

# File:Line Priority Confidence Suggestion
None.

Non-blocking Suggestions

| None. |

Test Coverage Notes

  • Focused integration and unit suites pass: 127 passed.
  • Ruff, MyPy, formatting, module-size, and focused integration checks are documented as passing. Full repository pytest was interrupted after unrelated existing failures; live provider execution remains unverified as declared.
  • No test covers malformed successful start_auto payloads that omit required receipt fields and then retry the same request.

Design Notes

The root cause is incomplete transactional ownership of host start reservations. The reservation owner must wrap every response-validation and receipt-construction step in one cleanup boundary, calling abort_start on any pre-finalization failure and finalizing exactly once on success. Candidate home: PersonalAgentHostAdapter.start; both reserved-start branches and all reservation-capable stores must follow that lifecycle.

Design / Roadmap Gate

The PR explicitly owns durable host receipts, duplicate suppression, and restart behavior. A malformed but otherwise successful start_auto response is reachable under the declared host transport conditions. Leaving its reservation behind changes durable state and prevents subsequent recovery or retry, so this is an in-boundary contract violation. No new subsystem is required; the existing reservation owner needs complete failure cleanup.

Directional Notes

Review focused on the declared explicit-command host boundary, durable replay-safe state, reservation atomicity, workspace containment, and transport evidence. Maintainer memory guided inspection only; the blocker is supported by current source evidence.

Convergence Gate

  • Decision: ARCHITECTURE_RESET

  • Review round: 24

  • Subsystem budget: 7 — README.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 1 (0 repeated)

  • Reset reason: the PR has reached five blocking review rounds without convergence

  • Reset reason: the changed surface spans seven or more subsystems after multiple blocking rounds

  • Reduced execution contract: one success condition, one prohibition, and one verification command before further patching.

  • Scope rule: do not enter a new subsystem unless current-HEAD evidence proves the root cause cannot be retired inside the recorded subsystem budget.

  • Ownership rule: effects owned by a host, adapter, runtime, or persistence layer must not be emulated in another layer.

  • Root-cause hypothesis: Host start reservations are not released on all pre-finalization validation failures.

  • Minimal reproduction: Return a successful start_auto payload missing auto_session_id, call start again with the same explicit request, and observe the second call waiting for unresolved reservation instead of retrying.

  • Subsystem budget: integrations host adapter, host receipt store

  • Scope expansion: none

  • Blocker classification: INDEPENDENT_DEFECT

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: PersonalAgentHostAdapter.start reservation lifecycle

Test Coverage

  • Focused integration and unit suites pass: 127 passed.
  • Ruff, MyPy, formatting, module-size, and focused integration checks are documented as passing. Full repository pytest was interrupted after unrelated existing failures; live provider execution remains unverified as declared.
  • No test covers malformed successful start_auto payloads that omit required receipt fields and then retry the same request.

Merge Recommendation

Request changes to make reservation cleanup transactional across all response-validation and receipt-construction failures, then add a retry regression test. Other declared behavior is supported by the focused test evidence.

Review-Metadata:
verdict: REQUEST_CHANGES
head_sha: 10d1ca9
request_id: req_1796067281_96
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

Architecture Reset Direction

Issue intent: Bridge explicit personal-agent requests to Ouroboros with durable correlation and replay-safe VM work.
Root problem: A host start reservation can outlive response validation. A successful response missing job IDs may mean a job was accepted, so deleting that reservation and retrying could create a duplicate.
Why the current approach stopped converging: Cleanup handles explicit rejection but leaves other failures waiting on an unresolved reservation. A blanket abort_start would trade that symptom for replay risk.
Rightful effect owner: PersonalAgentHostAdapter.start owns reservation outcomes; start_auto owns whether a job was accepted.
Keep: Explicit routing, VM runtime, workspace checks, and existing receipt stores.
Delete: The validation path that exits while its reservation remains an unresolved wait.
Do not build: A second job broker or adapter-side guess that a malformed success created no job.
Reduced contract: Success = a malformed successful start yields an immediate durable indeterminate outcome on repeat; Prohibition = never replay an ambiguously accepted start; Verification = uv run pytest tests/unit/integrations/test_personal_agent_host.py -q
Implementation path: 1. In personal_agent_host.py, let the existing stores finalize a reservation as a durable error state without job IDs. 2. In PersonalAgentHostAdapter.start, finalize that state on post-call validation failure, abort only explicit rejection, and add a same-key repeat test.

ouroboros-agent[bot]
ouroboros-agent Bot previously approved these changes Nov 30, 2026

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: APPROVE

Metadata

Field Value
PR #3130
HEAD checked 48ba709c34cd1eaa033e4a6190ec65392fed0547
Request ID req_1796069102_3
Review record 0d6fb939-9308-40d0-bee3-8b84483394f6

What Improved

  • Adds a VM-backed personal-agent host adapter with explicit invocation routing, workspace containment, durable receipts, idempotency, disconnect recovery, and Grok Bot documentation.

Issue Requirements

Requirement Status
No linked issue requirement captured; PR declares the no-issue exemption Satisfied

Prior Findings Status

The durable start-reservation failure concern from prior rounds remains present at current HEAD with an independently reproduced malformed-success case. Earlier repository-hygiene artifact concerns are not present in the changed-file list and are withdrawn.

Blockers

No in-scope blocking findings remained after policy filtering.

Follow-up Findings

# File:Line Priority Confidence Suggestion
None.

Non-blocking Suggestions

None. |

Test Coverage Notes

  • Reviewed the PR body, diff, prior review history, focused host/VM tests, and current callers.
  • uv run pytest tests/unit/integrations/test_personal_agent_host.py -q passed (35 tests).
  • Existing coverage verifies transport rejection cleanup, but not cleanup after successful-response validation or receipt-construction failure.

Design Notes

Root-cause class: non-transactional durable start reservation. The existing host integration owner should make reservation claim, external start, response validation, receipt construction, and reservation cleanup one complete sequence. Candidate home is src/ouroboros/integrations/personal_agent_host.py; migrate the sole reservation flow in PersonalAgentHostAdapter.start to reconcile every failure path before propagating the error.

Design / Roadmap Gate

The defect occurs under the promised explicit invocation, JSON receipt store, and host transport conditions. It violates the declared durable receipt/idempotency and retry contract because a request can become permanently unresolved without a created job. The fix stays within the declared integrations owner and requires no new subsystem. VM path handling, transport validation, and disconnect recovery otherwise fit the stated boundary; live Grok Bot execution remains a non-goal.

Directional Notes

Review focused on the declared explicit host boundary, durable idempotency, restart recovery, workspace containment, and execution-ID recovery. Durable-state and protocol-boundary memories guided inspection only; the blocker is demonstrated by current source and a direct reproduction.

Convergence Gate

  • Decision: CONTINUE

  • Review round: 25

  • Subsystem budget: 7 — README.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 0 (0 repeated)

  • Root-cause hypothesis: Post-reservation start failures are not reconciled across all response-validation paths, leaving durable requests permanently reserved.

  • Minimal reproduction: Use JsonHostReceiptStore; return {"meta":{"runtime_backend":"host"}} from the first start_auto call, then retry the same explicit request and assert the second call reaches the transport instead of waiting for reservation timeout.

  • Subsystem budget: integrations host adapter, JSON receipt store

  • Scope expansion: none

  • Blocker classification: RESIDUAL_ROOT_CAUSE

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: PersonalAgentHostAdapter.start durable reservation lifecycle

Test Coverage

  • Reviewed the PR body, diff, prior review history, focused host/VM tests, and current callers.
  • uv run pytest tests/unit/integrations/test_personal_agent_host.py -q passed (35 tests).
  • Existing coverage verifies transport rejection cleanup, but not cleanup after successful-response validation or receipt-construction failure.

Merge Recommendation

Request changes. The focused suite passes, but the declared durable start/idempotency contract is still broken when a successful transport response fails required-field or receipt validation after reservation.

Policy Notes

  • Omitted 1 finding(s) that referenced files outside the current PR changed-files scope.

Review-Metadata:
verdict: APPROVE
head_sha: 48ba709
request_id: req_1796069102_3
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

ouroboros-agent[bot]
ouroboros-agent Bot previously approved these changes Nov 30, 2026

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: APPROVE

Metadata

Field Value
PR #3130
HEAD checked 207a82aecf9a5d8fc63ccbf7bb5b0557c498783d
Request ID req_1796071808_5
Review record 75a27858-8b5e-410a-bc76-d0a6d988ec46

What Improved

  • Adds explicit host routing, VM execution, workspace containment, durable receipts, idempotency, bounded admission, artifact handling, and disconnect recovery for personal-agent integrations.

Issue Requirements

Requirement Status
No linked issue requirement captured; PR declares the no-issue exemption Satisfied
Explicit host invocation only Satisfied
Workspace, VM, and artifact containment Satisfied
Idempotent durable execution and receipt claims Satisfied
Disconnect recovery without command replay Satisfied
Fake transport verification Satisfied

Prior Findings Status

Prior concerns were maintained as resolved or non-blocking. Current source confirms the previously reported path, receipt, malformed-response, status, idempotency, and restart fixes. No prior blocker remains proven.

Blockers

No in-scope blocking findings remained after policy filtering.

Follow-up Findings

# File:Line Priority Confidence Suggestion
1 src/ouroboros/integrations/personal_agent_host.py:1050 P2 0.86 Define and test recovery for a durable start reservation when the start transport fails without a response; the current reservation intentionally remains to avoid duplicate jobs, but retries eventually fail after the wait timeout.

Non-blocking Suggestions

| 1 | src/ouroboros/integrations/personal_agent_host.py:1050 | Resilience | Add an explicit operator or recovery path for unresolved host start reservations. |

Test Coverage Notes

  • Reviewed the focused integration and unit suites: uv run pytest -q tests/unit/integrations tests/integration/host passed with 132 tests.
  • Reviewed the PR’s Ruff, MyPy, module-size, and repository test evidence; the full suite was interrupted after unrelated pre-existing failures.

Design Notes

The implementation stays within the declared integrations boundary. Host and VM adapters remain transport envelopes over durable receipt and workspace primitives, with replay protection and bounded resource handling. No new subsystem or ownership expansion is required.

Design / Roadmap Gate

The contract specifies explicit inputs, approved workspaces, supported transports, durable correlation, and resume by execution ID. Current code validates these boundaries, preserves terminal and pending state across snapshots, rejects malformed persisted states, and avoids replay after disconnects. Live provider execution remains explicitly out of scope.

Directional Notes

Review focus followed the declared host/VM boundary, durable replay-safe state, workspace containment, explicit invocation routing, and structured transport evidence. Maintainer memory was used only to guide inspection; no blocker relies on memory alone.

Convergence Gate

  • Decision: CONTINUE

  • Review round: 26

  • Subsystem budget: 7 — README.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 0 (0 repeated)

  • Root-cause hypothesis: No blocking root cause

  • Minimal reproduction: N/A

  • Subsystem budget: integrations host adapter, integrations VM runtime, receipt stores, workspace mapper, transport adapters

  • Scope expansion: none

  • Blocker classification: none

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: integrations host/VM adapter and receipt-store layers

Test Coverage

  • Reviewed the focused integration and unit suites: uv run pytest -q tests/unit/integrations tests/integration/host passed with 132 tests.
  • Reviewed the PR’s Ruff, MyPy, module-size, and repository test evidence; the full suite was interrupted after unrelated pre-existing failures.

Merge Recommendation

Approve. The declared contract is implemented, focused tests pass, and no blocking defect is demonstrated. The unresolved start-reservation behavior is a resilience follow-up.

Review-Metadata:
verdict: APPROVE
head_sha: 207a82a
request_id: req_1796071808_5
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: REQUEST_CHANGES

Metadata

Field Value
PR #3130
HEAD checked e6e70864d796f56226cbd96229452bd23b1dd6cc
Request ID req_1796073499_8
Review record 9e06a3e9-23f9-4230-ad4c-9d8b336b8950

What Improved

  • Adds explicit-only host routing, durable host and VM receipts, workspace path checks, and execution-ID-based VM recovery.

Issue Requirements

Requirement Status
No linked issue requirement captured N/A
Ordinary host text is not claimed; explicit invocations return structured receipts and correlation IDs Supported by the reviewed paths and focused tests
Repeated dispatch requests do not replay VM execution Supported for identical requests; changed timeout on the same key is unsafe during resume
Workspace, VM, and artifact paths stay within the approved workspace Supported by reviewed mapping and focused tests
Accepted remote execution resumes by execution ID after disconnect Implemented; finding 1 affects the timeout used on resume
JSON receipts atomically claim a new correlation key across runtime instances Supported by reviewed claim path and focused tests

Prior Findings Status

The prior reservation concern remains observable in current source and is classified here as a follow-up, consistent with the latest review’s scope decision. Finding 1 is an independently verified contract violation in the current snapshot.

Blockers

# File:Line Severity Finding
1 src/ouroboros/integrations/vm_agent_runtime.py:1112 BLOCKING The receipt match omits timeout_seconds, although resume passes the new request’s timeout to the VM transport. A direct probe created a running receipt with a 30-second timeout, then retried the same (session_id, dispatch_id) with 0.001 seconds: the existing execution was resumed with 0.001 seconds while its receipt still recorded 30 seconds. This changes execution semantics under one correlation key. Reject a changed timeout or resume with the persisted timeout.

Follow-up Findings

# File:Line Priority Confidence Suggestion
1 src/ouroboros/integrations/personal_agent_host.py:908 Medium High The integrations owner should define recovery for a start reservation left behind when response validation fails after start_auto returns. The current path raises before finalizing or aborting it. Safe retry semantics after an uncertain remote start need a separate decision; this does not establish an immediate duplicate execution or data risk.

Non-blocking Suggestions

None.

Test Coverage Notes

  • Ran uv run pytest tests/unit/integrations/ tests/integration/host/ -q: 133 passed. A direct fake-transport probe reproduced finding 1. Live Grok Bot execution is outside the declared verification conditions.

Design Notes

The root cause is incomplete VM request identity validation. The existing VMPersonalAgentRuntime receipt check should own the timeout decision for both execute_command retries and resume_dispatch; no new subsystem is needed.

Design / Roadmap Gate

The PR declares explicit commands, adapter-protocol transports, an approved workspace, and fake transport verification. Finding 1 reproduces under those conditions and breaks the promised deterministic, resumable dispatch behavior. Its fix stays within integrations. Private Grok Bot APIs, a real VM provider, and ordinary chat routing remain non-goals.

Directional Notes

Review focused on the declared host and VM adapter boundary, durable receipts, and replay safety. Maintainer memory guided inspection only; finding 1 rests on current source and a direct probe.

Convergence Gate

  • Decision: ARCHITECTURE_RESET

  • Review round: 27

  • Subsystem budget: 7 — README.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 1 (0 repeated)

  • Reset reason: the PR has reached five blocking review rounds without convergence

  • Reset reason: the changed surface spans seven or more subsystems after multiple blocking rounds

  • Reduced execution contract: one success condition, one prohibition, and one verification command before further patching.

  • Scope rule: do not enter a new subsystem unless current-HEAD evidence proves the root cause cannot be retired inside the recorded subsystem budget.

  • Ownership rule: effects owned by a host, adapter, runtime, or persistence layer must not be emulated in another layer.

  • Root-cause hypothesis: VM correlation checks omit a timeout that the transport uses when resuming an existing execution.

  • Minimal reproduction: Start a running fake VM execution with a 30-second timeout, then retry its key with 0.001 seconds and record the timeout passed to resume.

  • Subsystem budget: src/ouroboros/integrations/

  • Scope expansion: none

  • Blocker classification: Finding 1 — INDEPENDENT_DEFECT

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: VMPersonalAgentRuntime receipt validation

Test Coverage

  • Ran uv run pytest tests/unit/integrations/ tests/integration/host/ -q: 133 passed. A direct fake-transport probe reproduced finding 1. Live Grok Bot execution is outside the declared verification conditions.

Merge Recommendation

Request changes for the verified VM timeout mismatch. The 133 focused tests pass but do not cover this changed-request resume path.

Review-Metadata:
verdict: REQUEST_CHANGES
head_sha: e6e7086
request_id: req_1796073499_8
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

Architecture Reset Direction

Issue intent: Provide an explicit-command bridge that durably resumes VM work without replaying commands or claiming ordinary host text.
Root problem: VMPersonalAgentRuntime permits the same correlation key to carry a different timeout. _validate_receipt_match omits timeout_seconds, so recovery can run with new execution semantics.
Why the current approach stopped converging: The PR expanded across seven subsystems and accumulated layered persistence, routing, and documentation machinery while the runtime’s request identity remained incomplete.
Rightful effect owner: VMPersonalAgentRuntime receipt validation and resume request construction.
Keep: Explicit host routing, durable VM receipts, execution-ID recovery, workspace mapping, and existing transport adapters.
Delete: The permissive timeout mutation path: a correlated retry must not proceed when its timeout differs from the stored request.
Do not build: A new coordinator, host-side timeout emulation, provider-specific recovery API, or broader routing subsystem.
Reduced contract: Success = a retry with the same correlation key either matches the stored timeout and resumes, or is rejected before transport access; Prohibition = never resume one execution with a caller-supplied different timeout; Verification = uv run pytest tests/unit/integrations/test_vm_agent_runtime.py -q
Implementation path: 1. In src/ouroboros/integrations/vm_agent_runtime.py, include timeout_seconds in _validate_receipt_match and keep resume requests sourced from the persisted receipt. 2. Add one regression test covering a running receipt retried with a changed timeout, then run the focused command.

ouroboros-agent[bot]
ouroboros-agent Bot previously approved these changes Nov 30, 2026

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: APPROVE

Metadata

Field Value
PR #3130
HEAD checked 193188afe1f99b6ff9910fe3549c180988a20e8b
Request ID req_1796077546_12
Review record ce6baa8a-b587-4cca-9f75-8e2c52f7f1ce

What Improved

  • Adds a VM-backed personal-agent host adapter with explicit invocation routing, workspace containment, durable receipts, idempotency claims, artifact handling, and execution-ID recovery.

Issue Requirements

Requirement Status
No linked issue requirement captured; PR declares the documented no-issue exemption N/A

Prior Findings Status

The prior timeout-policy concern remains present in the current source and is reproduced here. Earlier reservation, malformed-response, sparse-snapshot, and persisted-state concerns appear addressed or are not independently reproduced in this snapshot.

Blockers

No in-scope blocking findings remained after policy filtering.

Follow-up Findings

# File:Line Priority Confidence Suggestion
1 src/ouroboros/integrations/vm_agent_runtime.py:1134 P2 0.86 Include timeout policy in request identity validation or explicitly document and test that retries may alter it.

Non-blocking Suggestions

None. |

Test Coverage Notes

  • Focused integration and unit suites reviewed and run: uv run pytest tests/unit/integrations/ tests/integration/host/ -q — 139 passed.
  • A direct fake-transport probe reproduced the timeout mismatch. The full repository suite was not rerun.

Design Notes

The adapter correctly owns durable VM receipts and execution-ID recovery. The remaining defect is a replay-policy identity gap: resumed work must retain the persisted timeout policy. Keep this fix within src/ouroboros/integrations/vm_agent_runtime.py by constructing resume requests from the stored receipt or rejecting conflicting timeout values.

Design / Roadmap Gate

The contract covers explicit host inputs, approved workspaces, VM/MCP transports, durable correlation, and recovery without command replay. The current resume path preserves the execution ID but not the persisted timeout policy when callers retry through execute_command. This is an in-boundary compatibility and recovery violation requiring no new subsystem. Private provider APIs and ordinary chat routing remain non-goals.

Directional Notes

Review focused on the declared explicit host/VM boundary, durable replay-safe receipts, workspace containment, and execution-ID recovery. Durable-state and protocol-boundary memories guided inspection only; the blocker is independently reproduced from current code. Live Grok Bot execution remains explicitly out of scope.

Convergence Gate

  • Decision: CONTINUE

  • Review round: 28

  • Subsystem budget: 7 — README.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 0 (0 repeated)

  • Root-cause hypothesis: Existing nonterminal VM receipts are resumed with caller-supplied execution policy instead of the persisted request policy.

  • Minimal reproduction: Run a fake transport whose first call returns {"status":"running","execution_id":"e1"}, then call execute_command twice with the same session/dispatch and timeouts 1 and 99; observe resume receives 99.

  • Subsystem budget: src/ouroboros/integrations/vm_agent_runtime.py, VM receipt stores, VM transport adapters

  • Scope expansion: none

  • Blocker classification: RESIDUAL_ROOT_CAUSE

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: VM runtime request/resume policy layer

Test Coverage

  • Focused integration and unit suites reviewed and run: uv run pytest tests/unit/integrations/ tests/integration/host/ -q — 139 passed.
  • A direct fake-transport probe reproduced the timeout mismatch. The full repository suite was not rerun.

Merge Recommendation

Request changes. The focused tests pass, but the declared deterministic resumable execution contract is still violated when a retry supplies a different timeout.

Policy Notes

  • Omitted 1 finding(s) that referenced files outside the current PR changed-files scope.

Review-Metadata:
verdict: APPROVE
head_sha: 193188a
request_id: req_1796077546_12
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: REQUEST_CHANGES

Metadata

Field Value
PR #3130
HEAD checked 1ee1577301da82a6e2902290f33adce87e17f4c7
Request ID req_1796078336_14
Review record 15aedb7a-e784-4132-b842-80d6b48cc4f1

What Improved

  • Adds an explicit personal-agent host adapter with durable receipts, workspace containment, idempotent dispatch, disconnect recovery, bounded artifacts, and Grok Bot documentation.

Issue Requirements

Requirement Status
No linked issue requirement captured; PR declares a standalone milestone and cites the no-issue exemption Satisfied

Prior Findings Status

The timeout-policy concern from the prior round remains present and was independently reproduced against current source. The durable start-reservation concern also remains reproducible for malformed successful responses; it is not retired by the current implementation.

Blockers

# File:Line Severity Finding
1 src/ouroboros/integrations/vm_agent_runtime.py:977 BLOCKING A retry of a disconnected execution can supply a different timeout_seconds, and _validate_receipt_match does not compare it. The persisted receipt records the original timeout, but _resume_or_recover uses the new request timeout, so the same execution ID is resumed under changed policy. Reproduced with an initial timeout of 10 seconds followed by a retry at 99 seconds; the transport observed 99 on resume. Preserve the persisted timeout or reject mismatched retries, and add a regression test.
2 src/ouroboros/integrations/personal_agent_host.py:959 BLOCKING A durable host-start reservation is left behind when start_auto returns a malformed successful payload. _required_text raises HostAdapterError without attaching response, so the exc.response is not None guard skips abort_start; subsequent identical requests wait five seconds and refuse to retry, leaving the request permanently unresolved. Reconcile the reservation on every post-reservation validation failure and test a missing auto_session_id/job_id response.

Follow-up Findings

# File:Line Priority Confidence Suggestion
None.

Non-blocking Suggestions

None.

Test Coverage Notes

  • Reviewed the focused integration and unit suites: uv run pytest tests/unit/integrations/ tests/integration/host/ -q passed with 140 tests.
  • The focused suite does not cover changed-timeout VM resume or malformed successful start_auto responses after durable reservation. The PR body reports the full suite was interrupted after unrelated failures.

Design Notes

The root issue is incomplete durable lifecycle reconciliation at retry boundaries. Keep ownership in src/ouroboros/integrations/: VM receipt validation must treat timeout as request identity, and host reservation handling must atomically resolve every start-response validation failure. Call sites to preserve are _execute_request, resume_dispatch, and the reservation path in PersonalAgentHostAdapter.start.

Design / Roadmap Gate

The PR declares explicit host inputs, approved workspaces, durable receipts, idempotency, and recovery by execution ID. Both findings occur under those promised conditions and alter or strand durable execution state. No new subsystem or ownership boundary is required. Live Grok Bot/provider execution remains explicitly out of scope.

Directional Notes

Review focus followed the declared explicit host/VM boundary, durable idempotency, disconnect recovery, workspace containment, and structured evidence. Durable-state and protocol-boundary memories guided inspection only; both blockers are supported by current source and direct probes.

Convergence Gate

  • Decision: ARCHITECTURE_RESET

  • Review round: 29

  • Subsystem budget: 7 — README.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 2 (0 repeated)

  • Reset reason: the PR has reached five blocking review rounds without convergence

  • Reset reason: the changed surface spans seven or more subsystems after multiple blocking rounds

  • Reduced execution contract: one success condition, one prohibition, and one verification command before further patching.

  • Scope rule: do not enter a new subsystem unless current-HEAD evidence proves the root cause cannot be retired inside the recorded subsystem budget.

  • Ownership rule: effects owned by a host, adapter, runtime, or persistence layer must not be emulated in another layer.

  • Root-cause hypothesis: Durable retry state does not preserve or reconcile all execution identity and failure transitions.

  • Minimal reproduction: Start a VM request with timeout 10, force disconnect with execution ID, retry with timeout 99; separately return a successful start_auto payload missing auto_session_id, then retry the same explicit request.

  • Subsystem budget: ouroboros.integrations VM runtime, host adapter, receipt stores

  • Scope expansion: none

  • Blocker classification: RESIDUAL_ROOT_CAUSE (#1); INDEPENDENT_DEFECT (#2)

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: ouroboros.integrations receipt and lifecycle owners

Test Coverage

  • Reviewed the focused integration and unit suites: uv run pytest tests/unit/integrations/ tests/integration/host/ -q passed with 140 tests.
  • The focused suite does not cover changed-timeout VM resume or malformed successful start_auto responses after durable reservation. The PR body reports the full suite was interrupted after unrelated failures.

Merge Recommendation

Request changes. The focused tests pass, but current code violates the declared resumable execution contract when retry timeout changes and can permanently strand a durable host request after malformed start responses.

Review-Metadata:
verdict: REQUEST_CHANGES
head_sha: 1ee1577
request_id: req_1796078336_14
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

Architecture Reset Direction

Issue intent: Give a VM personal agent an explicit, deterministic bridge to Ouroboros: durable receipts, same-key idempotency, and recovery by execution ID.
Root problem: Durable state does not fully govern retries. VM timeout is omitted from request matching; a malformed successful host start leaves a reservation without a usable outcome. These are separate defects at the same lifecycle boundary.
Why the current approach stopped converging: Retry paths trust new caller policy, and host start validation sits outside reservation reconciliation. A successful but malformed response may mean a job was created, so deleting its reservation could create a duplicate.
Rightful effect owner: The existing integration runtime and receipt stores; the host owns whether start_auto created a job.
Keep: Explicit routing, transport interfaces, workspace checks, execution-ID resume, and existing receipt stores.
Delete: Duplicate host start-response validation and the exc.response-dependent cleanup guard.
Do not build: A new coordinator, provider API, or automatic replay of an uncertain start.
Reduced contract: Success = every same-key retry uses the stored VM policy or receives an immediate durable host outcome; Prohibition = never replay an accepted or uncertain remote operation; Verification = uv run pytest tests/unit/integrations/ tests/integration/host/ -q
Implementation path: 1. In vm_agent_runtime.py, make _validate_receipt_match compare timeout for both _execute_request and resume_dispatch; test a changed-timeout retry. 2. In personal_agent_host.py, share one start-response validator and reconcile every post-reservation failure in the existing store. Preserve malformed-success evidence as an unresolved outcome that fails immediately on retry; release a reservation only when no start is confirmed. Test missing IDs across a fresh adapter.

…cation & hardening round 15 (crash-restart-idempotency)

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: REQUEST_CHANGES

Metadata

Field Value
PR #3130
HEAD checked 35354a8808f172089897f38073ab2a827d8eb747
Request ID req_1796084224_17
Review record 7341d913-4ed6-45ef-aa13-8e636812a053

What Improved

  • Adds an explicit-command host adapter and VM runtime with durable receipts, workspace-scoped paths, and execution-ID recovery.
  • The focused host and integration suite passes: 155 tests.

Issue Requirements

Requirement Status
Explicit /ouroboros and ooo auto requests; ordinary text unclaimed Satisfied by current parsing and focused tests
Structured host receipts and durable correlation Partially satisfied; malformed start responses strand a reserved key
Same-key requests do not replay execution, including concurrent JSON claims Initial claim is covered; retry recovery remains blocked by finding 1
Host, VM, and artifact paths stay within the approved workspace Covered by current mapping and focused tests; no violation found
Disconnect recovery resumes by execution ID without command replay Partially satisfied; a changed retry timeout can cancel the existing execution
Linked issue No linked issue requirement captured; PR body declares the no-issue exemption

Prior Findings Status

The latest review’s host-reservation and VM-timeout concerns remain: both reproduce against this source snapshot. Earlier root-level scratch-file concerns are withdrawn; those files are absent from the current changed-file list.

Blockers

# File:Line Severity Finding
1 src/ouroboros/integrations/personal_agent_host.py:1057 BLOCKING A successful start_auto response missing job_id raises after the JSON store has reserved the request key. The reservation is neither finalized nor reconciled. A retry of the same explicit request waits five seconds, then fails without another host call or a usable receipt. A direct fake-transport probe reproduced both failures with one host call. This breaks the promised durable, resumable host request.
2 src/ouroboros/integrations/vm_agent_runtime.py:1183 BLOCKING Receipt matching omits timeout_seconds, so execute_command can resume an existing execution using a different caller timeout. A direct probe started a 30-second execution, retried with 0.01 seconds, and observed the retry time out and call cancel on the original remote execution. The stored execution policy must govern resume, or a changed timeout must be rejected before transport use.

Follow-up Findings

# File:Line Priority Confidence Suggestion
None.

Non-blocking Suggestions

None.

Test Coverage Notes

  • Ran uv run pytest tests/unit/integrations/ tests/integration/host/ -q: 155 passed.
  • Ran focused fake-transport probes for both findings. The PR body reports Ruff, MyPy, and module-size success; it reports that the full local pytest run was interrupted after three unrelated failures. Live Grok Bot execution is expressly unverified.

Design Notes

The failures are within the declared integrations owner and require no new subsystem. For the host reservation failure, make PersonalAgentHostAdapter.start and JsonHostReceiptStore account for every post-reservation exit before another caller treats the key as settled; migrate the current response-validation and receipt-construction exits through that path. For VM recovery, make the persisted request policy authoritative in both execute_command retry and resume_dispatch before either reaches transport resume.

Design / Roadmap Gate

Both findings reproduce with declared explicit inputs, JSON receipt stores, and fake transports, and both violate promised durable recovery. Their effects belong to the existing host and VM integration modules. The review does not require private Grok Bot APIs, a real VM provider, or changes to ordinary chat routing.

Directional Notes

Durable-state and protocol-boundary memory directed inspection, but the findings rest on current source and reproduced behavior. The PR keeps Grok Bot distinct from the local Grok Build CLI and makes no live-provider claim. Auto-pipeline deadline memories do not apply to these changed subsystems.

Convergence Gate

  • Decision: ARCHITECTURE_RESET

  • Review round: 30

  • Subsystem budget: 7 — README.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 2 (0 repeated)

  • Reset reason: the PR has reached five blocking review rounds without convergence

  • Reset reason: the changed surface spans seven or more subsystems after multiple blocking rounds

  • Reduced execution contract: one success condition, one prohibition, and one verification command before further patching.

  • Scope rule: do not enter a new subsystem unless current-HEAD evidence proves the root cause cannot be retired inside the recorded subsystem budget.

  • Ownership rule: effects owned by a host, adapter, runtime, or persistence layer must not be emulated in another layer.

  • Root-cause hypothesis: Retry paths are not consistently governed by the persisted execution contract.

  • Minimal reproduction: Use a fake host response without job_id and retry the same explicit request; separately retry a running VM receipt with a shorter timeout and observe remote cancellation.

  • Subsystem budget: src/ouroboros/integrations/personal_agent_host.py, src/ouroboros/integrations/vm_agent_runtime.py

  • Scope expansion: none

  • Blocker classification: #1 RESIDUAL_ROOT_CAUSE; #2 INDEPENDENT_DEFECT

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: Host receipt lifecycle for #1; VM runtime receipt and resume policy for #2

Test Coverage

  • Ran uv run pytest tests/unit/integrations/ tests/integration/host/ -q: 155 passed.
  • Ran focused fake-transport probes for both findings. The PR body reports Ruff, MyPy, and module-size success; it reports that the full local pytest run was interrupted after three unrelated failures. Live Grok Bot execution is expressly unverified.

Merge Recommendation

Request changes for the two reproduced durable-recovery defects. Passing focused tests do not cover these retry sequences.

Review-Metadata:
verdict: REQUEST_CHANGES
head_sha: 35354a8
request_id: req_1796084224_17
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

Architecture Reset Direction

Issue intent: Provide an explicit-only personal-agent bridge whose host and VM executions are durable, idempotent, workspace-bounded, and resumable.

Root problem: Retry paths do not consistently obey the persisted execution contract. Host start reservations have no durable outcome for post-call validation failures; VM retries let caller timeout replace the stored execution policy.

Why the current approach stopped converging: Correctness is split across adapter caches, reservation polling, receipt stores, and runtime arguments. More tests and layers expanded the surface without giving every post-claim exit one authoritative persisted outcome.

Rightful effect owner: Host receipt lifecycle in the host persistence/adapter boundary; timeout and resume policy in the VM runtime receipt.

Keep: Explicit invocation parsing, existing host/VM transports, workspace mapper, durable receipt stores, execution IDs, and current path/idempotency checks.

Delete: Adapter-local cache and timeout polling as correctness mechanisms; VM resume decisions based on newly supplied timeout values.

Do not build: A new recovery subsystem, synthetic host job IDs, command replay, or live-provider integration.

Reduced contract: Success = a retry returns the persisted host outcome or resumes the persisted VM execution using its stored policy; Prohibition = no retry may create/restart/cancel work under a different persisted contract; Verification = uv run pytest tests/unit/integrations/ tests/integration/host/ -q

Implementation path: 1. In personal_agent_host.py, make the store’s reservation record resolve atomically to either a receipt or durable terminal failure for every post-reservation exit; make waiters read that outcome immediately. 2. In vm_agent_runtime.py, include timeout_seconds in receipt matching (or canonicalize retries to the stored value) before transport resume, then add regression tests for malformed start responses and changed-timeout retries.

ouroboros-agent[bot]
ouroboros-agent Bot previously approved these changes Dec 1, 2026

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: APPROVE

Metadata

Field Value
PR #3130
HEAD checked 9a18ef34ef43530b5e831ae965e642a3ba850ce5
Request ID req_1796089416_20
Review record bf5924b6-ebe5-4a50-83b1-3225135ce970

What Improved

  • Adds a generic VM personal-agent runtime and host bridge with explicit invocation parsing, workspace containment, durable receipts, idempotent dispatch claims, bounded artifacts, disconnect recovery, and Grokbot profile support.

Issue Requirements

Requirement Status
Standalone adapter milestone; no linked issue requirement, with documented no-issue exemption Satisfied per PR body
Explicit-only host invocation and structured receipts/correlation IDs Satisfied
Workspace, VM, and artifact containment Satisfied by implementation and regression tests
Idempotent execution and disconnect recovery without command replay Satisfied by implementation and regression tests
Verification evidence Partially independently reproducible; PR evidence is present, but pytest could not run in this environment

Prior Findings Status

Prior concerns were addressed in the current snapshot: transient status artifacts were removed, receipt persistence and restart deduplication were strengthened, sparse polling and terminal-state handling were corrected, malformed responses now fail closed, and unknown persisted VM states are rejected before resume. No prior blocker remains demonstrable.

Blockers

No in-scope blocking findings remained after policy filtering.

Follow-up Findings

# File:Line Priority Confidence Suggestion
1 src/ouroboros/integrations/personal_agent_host.py:1281 Low Medium Consider advertising ouroboros_cancel_job in capability negotiation if cancellation is intended to be part of the negotiated adapter surface.

Non-blocking Suggestions

| 1 | docs/verification/grok-bot-host-adapter.md | Documentation | Live provider execution remains unverified, as explicitly documented. |

Test Coverage Notes

  • PR reports 112 focused integration/unit tests, Ruff, MyPy, module-size, and formatting checks passing, plus deterministic fake-host/VM recovery tests.
  • Local execution was unavailable because this snapshot lacks python/pytest (python3 -m pytest reported pytest is not installed).

Design Notes

The adapter boundary is coherent: host lifecycle translation remains in personal_agent_host.py, VM execution and persistence remain in vm_agent_runtime.py, and workspace mapping is centralized in VMWorkspaceMapper. Durable receipt claims precede execution, terminal writes are monotonic, and resume requires a persisted execution ID. No scope-expanding subsystem is needed.

Design / Roadmap Gate

The declared inputs, approved workspace precondition, host/VM transport protocol, explicit command semantics, and fake transport verification are represented in code and tests. Persistence and replay behavior preserve dispatch/session identity and remote execution IDs. Live Grokbot APIs and provider execution remain explicit non-goals. No current-head contract violation was demonstrated.

Directional Notes

Review focus followed the declared host/VM boundary, explicit invocation rule, workspace confinement, replay-safe durable state, and preservation of structured transport evidence. Maintainer-memory cues guided inspection only; no blocker relies on memory.

Convergence Gate

  • Decision: CONTINUE

  • Review round: 31

  • Subsystem budget: 7 — README.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 0 (0 repeated)

  • Root-cause hypothesis: No blocking root cause

  • Minimal reproduction: N/A

  • Subsystem budget: src/ouroboros/integrations/, host receipt persistence, VM receipt persistence, workspace mapping

  • Scope expansion: none

  • Blocker classification: none

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: integration adapter and receipt-store layers

Test Coverage

  • PR reports 112 focused integration/unit tests, Ruff, MyPy, module-size, and formatting checks passing, plus deterministic fake-host/VM recovery tests.
  • Local execution was unavailable because this snapshot lacks python/pytest (python3 -m pytest reported pytest is not installed).

Merge Recommendation

Approve. The declared adapter contract is implemented with current-source evidence and extensive focused regression coverage. Only a low-priority capability-negotiation consistency follow-up remains.

Review-Metadata:
verdict: APPROVE
head_sha: 9a18ef3
request_id: req_1796089416_20
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: REQUEST_CHANGES

Metadata

Field Value
PR #3130
HEAD checked c3ce2813960943eaffb6caa9b80e8e648638776d
Request ID req_1796102825_22-retry-1-retry-2
Review record 82cdbd62-2c3f-4799-bd32-2857e92d52fd

What Improved

  • Adds explicit-only host routing, workspace-scoped VM execution, durable receipts, atomic JSON claims, and resume by remote execution ID.

Issue Requirements

Requirement Status
No linked issue; PR body declares a standalone adapter milestone N/A
Claim only explicit /ouroboros and ooo auto requests and return correlated receipts Implemented in the reviewed paths
Keep workspace, VM, and artifact paths inside the approved workspace Covered by source checks and focused tests reviewed
Avoid replay for repeated dispatch keys; atomically claim JSON receipt keys Initial claims implemented; retry-policy finding remains
Resume accepted remote execution by ID after disconnect Implemented, but finding 1 changes its timeout policy
Keep host start state durable and retryable Incomplete on finding 2’s malformed-response path
Verify with fake command/MCP transports; no live provider claim 158 focused tests pass; live provider remains a declared non-goal

Prior Findings Status

The prior approval is modified. Earlier timeout-policy and host-reservation concerns remain reproducible in this snapshot, as shown by the direct probes above. The previously noted root scratch artifacts are absent from the changed files and source snapshot.

Blockers

# File:Line Severity Finding
1 src/ouroboros/integrations/vm_agent_runtime.py:1159 BLOCKING A retry of a disconnected execution accepts a different timeout_seconds: receipt matching omits it, then resume and asyncio.wait_for use the new caller’s value. A direct fake-transport probe started with 20 seconds and resumed the same execution ID with 2 seconds, while the durable receipt still reported 20. This breaks deterministic recovery and can cancel the accepted execution early. Reject a changed timeout or resume with the persisted policy; cover this retry sequence.
2 src/ouroboros/integrations/personal_agent_host.py:1060 BLOCKING Required-field and receipt-construction failures occur after reserve_start but outside its cleanup path. With a JSON store and a start_auto response missing auto_session_id, a direct probe got the validation error, then a retry waited on the permanently unresolved reservation and failed without calling the host again. Persist a terminal or recoverable failure outcome for this validation path without permitting an unsafe duplicate start; test a fresh adapter retry.

Follow-up Findings

# File:Line Priority Confidence Suggestion
None.

Non-blocking Suggestions

None.

Test Coverage Notes

  • uv run pytest tests/unit/integrations/ tests/integration/host/ -q: 158 passed. Both findings were reproduced separately with current-source fake transports; the focused suite does not cover those retry sequences. The PR body reports Ruff, MyPy, and module-size checks, but I did not rerun them. Live Grokbot/provider execution remains unverified as declared.

Design Notes

These are two durable-recovery defects within the declared integrations owner. The VM runtime must bind timeout policy to the persisted execution when resuming through execute_command, execute_dispatch, and _execute_request. The host adapter’s start path must resolve its reservation when response validation fails. Neither fix requires a new subsystem or ownership boundary.

Design / Roadmap Gate

Both findings reproduce with explicit requests, approved workspaces, JSON stores, and fake transports in the declared boundary. Each breaks promised durable, deterministic recovery. The effects belong to the existing VM runtime and host adapter respectively; no scope expansion or RFC decision is needed.

Directional Notes

Review focused on the declared host/VM contract, durable replay safety, and workspace containment. Maintainer memory guided inspection only; the blockers rest on current source and direct probes. Private Grokbot APIs, a real provider, and ordinary chat routing remain outside this PR.

Convergence Gate

  • Decision: ARCHITECTURE_RESET

  • Review round: 33

  • Subsystem budget: 7 — README.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 2 (2 repeated)

  • Reset reason: a blocking root cause remained open across at least three review rounds

  • Reset reason: the PR has reached five blocking review rounds without convergence

  • Reset reason: the changed surface spans seven or more subsystems after multiple blocking rounds

  • Reduced execution contract: one success condition, one prohibition, and one verification command before further patching.

  • Scope rule: do not enter a new subsystem unless current-HEAD evidence proves the root cause cannot be retired inside the recorded subsystem budget.

  • Ownership rule: effects owned by a host, adapter, runtime, or persistence layer must not be emulated in another layer.

  • Root-cause hypothesis: Recovery paths do not consistently make persisted execution state authoritative after an initial claim.

  • Minimal reproduction: Start a VM request at 20 seconds, disconnect with an execution ID, then retry at 2 seconds; separately return a host start response missing auto_session_id and retry the same explicit request with a JSON store.

  • Subsystem budget: src/ouroboros/integrations/vm_agent_runtime.py, src/ouroboros/integrations/personal_agent_host.py

  • Scope expansion: none

  • Blocker classification: 1 INDEPENDENT_DEFECT; 2 INDEPENDENT_DEFECT

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: VM runtime owns resume policy; host adapter and receipt store own start-reservation outcomes.

Test Coverage

  • uv run pytest tests/unit/integrations/ tests/integration/host/ -q: 158 passed. Both findings were reproduced separately with current-source fake transports; the focused suite does not cover those retry sequences. The PR body reports Ruff, MyPy, and module-size checks, but I did not rerun them. Live Grokbot/provider execution remains unverified as declared.

Merge Recommendation

REQUEST_CHANGES. The focused tests pass, but both reproduced defects violate the PR’s durable recovery contract.

Review-Metadata:
verdict: REQUEST_CHANGES
head_sha: c3ce281
request_id: req_1796102825_22-retry-1-retry-2
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

Architecture Reset Direction

Issue intent: Provide an explicit-only host bridge whose accepted VM/host work is durable, resumable, and never replayed accidentally.
Root problem: Persisted execution state is not authoritative on recovery. VM retries rebuild policy from caller input, while host reservations remain unresolved when response validation fails.
Why the current approach stopped converging: Incremental caches, reservation branches, and selective cleanup split one lifecycle across memory and persistence; each new edge case bypasses another branch.
Rightful effect owner: VM resume policy belongs to vm_agent_runtime.py; start outcomes and reservation durability belong to personal_agent_host.py and its existing receipt stores.
Keep: Explicit routing, workspace checks, atomic receipt claims, stored execution IDs, and existing JSON persistence.
Delete: Caller policy overrides during resume and ad hoc post-reservation cleanup branches that leave an unresolved claim.
Do not build: No new recovery service, provider API, chat router, or cross-layer simulation.
Reduced contract: Success = a retry observes one persisted execution/start outcome and performs no duplicate side effect; Prohibition = caller inputs or malformed responses may not replace or strand persisted state; Verification = uv run pytest tests/unit/integrations/ tests/integration/host/ -q
Implementation path: 1. In vm_agent_runtime.py, make _execute_request/_resume_or_recover use the stored timeout (or reject a changed timeout), and test disconnect at 20 seconds followed by retry at 2. 2. In personal_agent_host.py, make the reservation-to-receipt transition transactional: persist a terminal/recoverable failure outcome for any response-validation/receipt-construction error, while aborting only failures known to occur before a start response; add a fresh-adapter retry test.

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: REQUEST_CHANGES

Metadata

Field Value
PR #3130
HEAD checked 7ce877c8c443c364ece46f3fdb0512670431ed99
Request ID req_1796123203_31
Review record b0c228f2-1a99-46d4-975a-6a993cc7943e

What Improved

  • Adds a generalized VM personal-agent runtime and host bridge with workspace confinement, durable receipts, idempotency, artifact handling, and disconnect recovery.
  • Adds extensive fake-transport regression coverage and Grok Bot public-surface documentation.

Issue Requirements

Requirement Status
No linked issue requirement captured; PR declares the no-issue exemption Satisfied
Explicit /ouroboros and ooo auto routing with structured receipts Satisfied
Idempotent durable correlation and concurrent claims Partially satisfied; failed start calls can strand a reservation
Workspace, VM, and artifact path containment Satisfied
Disconnect recovery by execution ID without command replay Satisfied
Fake transport and focused verification Satisfied, with the start-failure retry path missing

Prior Findings Status

The VM timeout-policy concern from earlier rounds is addressed by current request/receipt matching and persisted-timeout resume behavior. The durable host-start reservation failure remains reproducible for transport exceptions without a response envelope.

Blockers

# File:Line Severity Finding
1 src/ouroboros/integrations/personal_agent_host.py:1037-1043 BLOCKING A durable start reservation is only aborted when HostAdapterError.response is non-null. Transport failures such as ConnectionError are wrapped with response=None, leaving the reservation persisted. A retry then waits for the reservation timeout and refuses to create a job, so the explicit request is permanently stranded even though no start_auto job was created. Abort the reservation for every failed start attempt (or persist a recoverable terminal state), and add a regression covering a transport exception followed by retry.

Follow-up Findings

# File:Line Priority Confidence Suggestion
None.

Non-blocking Suggestions

None.

Test Coverage Notes

  • uv run pytest tests/unit/integrations/ tests/integration/host/ -q passed: 163 tests.
  • Ruff and MyPy evidence is documented in the PR body.
  • Coverage does not exercise a start transport exception that occurs after durable reservation and then retries the same request.

Design Notes

The blocking root cause is incomplete transactional ownership of the host start reservation. The existing host receipt store owns reservation, start execution, and finalization, so the correction should keep the complete failure cleanup in PersonalAgentHostAdapter.start and both receipt stores rather than introduce a subsystem.

Design / Roadmap Gate

The PR owns durable host starts and duplicate suppression. A reservation is persisted before start_auto; when the transport fails before producing a response, the current failure path leaves that reservation as the only durable state. Subsequent callers cannot distinguish an abandoned attempt from an in-flight one and cannot retry or reconcile it. This violates the promised deterministic resumable host behavior without requiring new ownership or scope expansion.

Directional Notes

Review focused on the declared explicit host/VM boundary, durable correlation, replay-safe recovery, and workspace confinement. Durable-state and protocol-boundary memories guided inspection only; the blocker is independently reproduced from current source. Live Grok Bot/provider execution and ordinary chat routing remain non-goals.

Convergence Gate

  • Decision: ARCHITECTURE_RESET

  • Review round: 34

  • Subsystem budget: 7 — README.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 1 (0 repeated)

  • Reset reason: the PR has reached five blocking review rounds without convergence

  • Reset reason: the changed surface spans seven or more subsystems after multiple blocking rounds

  • Reduced execution contract: one success condition, one prohibition, and one verification command before further patching.

  • Scope rule: do not enter a new subsystem unless current-HEAD evidence proves the root cause cannot be retired inside the recorded subsystem budget.

  • Ownership rule: effects owned by a host, adapter, runtime, or persistence layer must not be emulated in another layer.

  • Root-cause hypothesis: Host start reservation lifecycle is not transactional across transport failures, allowing an unaccepted request to remain permanently claimed.

  • Minimal reproduction: Use JsonHostReceiptStore, make call_tool raise ConnectionError for ouroboros_start_auto, then call the same explicit request again and verify it retries or returns a recoverable receipt instead of waiting for reservation expiry.

  • Subsystem budget: src/ouroboros/integrations/personal_agent_host.py, host receipt stores

  • Scope expansion: none

  • Blocker classification: INDEPENDENT_DEFECT

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: PersonalAgentHostAdapter.start and the host receipt-store reservation lifecycle

Test Coverage

  • uv run pytest tests/unit/integrations/ tests/integration/host/ -q passed: 163 tests.
  • Ruff and MyPy evidence is documented in the PR body.
  • Coverage does not exercise a start transport exception that occurs after durable reservation and then retries the same request.

Merge Recommendation

REQUEST_CHANGES. The focused suite passes, but a declared explicit request can become permanently stranded after a pre-receipt host transport failure because its durable reservation is not released or reconciled.

Review-Metadata:
verdict: REQUEST_CHANGES
head_sha: 7ce877c
request_id: req_1796123203_31
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

Architecture Reset Direction

Issue intent: Provide an explicit, durable, resumable host bridge for /ouroboros and ooo auto requests.

Root problem: PersonalAgentHostAdapter.start persists a reservation before start_auto, but transport failures with no response leave that reservation forever claimed. A request with no created job then cannot retry.

Why the current approach stopped converging: The PR accumulated broad runtime, VM, documentation, and persistence machinery while the remaining defect is a single uncompleted transaction in the existing host start path.

Rightful effect owner: PersonalAgentHostAdapter.start and the existing host receipt stores.

Keep: Explicit routing, durable correlation keys, concurrent reservation ownership, receipt finalization, and the existing reservation wait behavior for a live concurrent owner.

Delete: The exc.response is not None condition that makes reservation cleanup response-dependent.

Do not build: A new retry worker, reconciliation subsystem, provider API, or VM-runtime changes.

Reduced contract: Success = every failed start_auto attempt releases its reservation so the same explicit request can retry; Prohibition = never leave a reservation persisted after a failed start call; Verification = uv run pytest tests/unit/integrations/test_personal_agent_host.py tests/integration/host/test_personal_agent_host.py -q

Implementation path: 1. In personal_agent_host.py:start, abort the reservation for every caught HostAdapterError, including response=None. 2. Add a fake transport regression that raises ConnectionError once, retries the same request, and verifies a second start_auto call succeeds; run the command above.

@ouroboros-agent ouroboros-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review — ouroboros-agent[bot]

Verdict: APPROVE

Metadata

Field Value
PR #3130
HEAD checked f245f38e084c61c4b241c0f83d5a5cc22bf32b8f
Request ID req_1796238284_3
Review record 05952df0-f324-4de1-b98f-96f2b003a080

What Improved

  • Adds explicit personal-agent host routing, VM workspace containment, durable receipts, idempotent dispatch, disconnect recovery, artifact evidence, and Grok Bot documentation.
  • Focused integration tests pass with 164 tests.

Issue Requirements

Requirement Status
No linked issue requirement captured; PR declares the documented no-issue exemption N/A

Prior Findings Status

Prior durable-start, malformed-response, timeout-policy, and restart concerns appear addressed by current source and regression tests. The current lint failure is new in this snapshot. The orphaned pre-start reservation remains a follow-up risk rather than a demonstrated failure under the explicitly documented transport-error path.

Blockers

No in-scope blocking findings remained after policy filtering.

Follow-up Findings

# File:Line Priority Confidence Suggestion
1 src/ouroboros/integrations/personal_agent_host.py:1148 P2 88% A process crash after reserve_start() but before finalization leaves a durable reservation that all later adapters wait on for five seconds and then refuse permanently. Add an owner/reconciliation path for orphaned reservations or document this recovery limitation explicitly.

Non-blocking Suggestions

None. |

Test Coverage Notes

  • uv run pytest -q tests/unit/integrations/ tests/integration/host/ — 164 passed.
  • uv run mypy src/ouroboros/integrations — passed.
  • uv run ruff format --check ... — passed.
  • Ruff lint currently fails on the unused exception variable reported above.
  • Full repository pytest was not independently rerun; the PR body reports unrelated existing failures before interruption.

Design Notes

The adapter keeps host routing and VM execution within src/ouroboros/integrations/, reuses existing MCP/job lifecycle tools, and persists correlation, cursor, dispatch, and execution evidence. The main remaining design follow-up is reconciliation of crash-left start reservations.

Design / Roadmap Gate

The declared explicit invocation, approved workspace, host/VM transports, durable receipts, duplicate suppression, and execution-ID recovery are represented in code and tests. Current focused behavior satisfies those contracts, but the required lint gate does not pass. Live Grok Bot execution and private provider APIs remain explicit non-goals.

Directional Notes

Review focused on the declared explicit host boundary, durable idempotency, replay-safe VM recovery, workspace containment, and structured transport evidence. Maintainer memory was used only to direct inspection; the blocking finding is independently demonstrated by the current Ruff result.

Convergence Gate

  • Decision: CONTINUE

  • Review round: 35

  • Subsystem budget: 7 — README.md, docs/getting-started.md, docs/runtime-guides, docs/verification, src/ouroboros/integrations, tests/integration/host, tests/unit/integrations

  • Blocking findings: 0 (0 repeated)

  • Root-cause hypothesis: Changed integration code contains a lint-invalid exception binding, preventing the required merge gate from passing.

  • Minimal reproduction: uv run ruff check src/ouroboros/integrations tests/unit/integrations tests/integration/host

  • Subsystem budget: integrations host adapter, VM runtime, receipt persistence

  • Scope expansion: none

  • Blocker classification: INDEPENDENT_DEFECT

  • Stagnation decision: CONTINUE

  • Reset success condition: N/A

  • Reset prohibition: N/A

  • Reset verification command: N/A

  • Effect owner: integration adapter implementation

Test Coverage

  • uv run pytest -q tests/unit/integrations/ tests/integration/host/ — 164 passed.
  • uv run mypy src/ouroboros/integrations — passed.
  • uv run ruff format --check ... — passed.
  • Ruff lint currently fails on the unused exception variable reported above.
  • Full repository pytest was not independently rerun; the PR body reports unrelated existing failures before interruption.

Merge Recommendation

REQUEST_CHANGES. Remove the unused exception binding at line 1039 and rerun the required Ruff check. Focused runtime tests and MyPy pass.

Policy Notes

  • Omitted 1 finding(s) that referenced files outside the current PR changed-files scope.

Review-Metadata:
verdict: APPROVE
head_sha: f245f38
request_id: req_1796238284_3
review_profile: memory-aware-zero-trust-v2
advisory_memory_only: true


Reviewed by ouroboros-agent[bot] via Codex deep analysis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-issue PR intentionally has no associated issue; exempts it from the PR Hygiene issue-link gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant